-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Initial porting of Infant-DWI - working main with minimal tests
- Loading branch information
1 parent
26f2e66
commit 29c9ae5
Showing
785 changed files
with
1,259,188 additions
and
1,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.nextflow* | ||
work/ | ||
data/ | ||
results/ | ||
.DS_Store | ||
testing/ | ||
testing* | ||
*.pyc | ||
null/ | ||
.nf-test* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import json | ||
|
||
with open(sys.argv[1]) as f: | ||
content = f.readlines() | ||
|
||
content = [x.strip().split() for x in content] | ||
print(len(content)) | ||
dict_data = {} | ||
for line in content: | ||
if line and line[0].isnumeric(): | ||
print(line) | ||
if '_RH_' in line[1]: | ||
dict_data['rh.'+line[1]] = line[0] | ||
elif '_LH_' in line[1]: | ||
dict_data['lh.'+line[1]] = line[0] | ||
|
||
with open(sys.argv[1].replace('txt', 'json'), 'w') as outfile: | ||
json.dump(dict_data, outfile, indent=2) |
Oops, something went wrong.