-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milos Ljubinkovic
committed
Mar 22, 2018
1 parent
06b0a60
commit 24d9379
Showing
32 changed files
with
234 additions
and
21 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
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
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
54 changes: 54 additions & 0 deletions
54
...examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/.Transcribe.meta/job.json
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,54 @@ | ||
{ | ||
"id" : "50539b1b-292f-3e24-9e85-0970389a5f8a", | ||
"parentId" : "3b13e065-ef67-4f49-9da6-5196c50412cb", | ||
"rootId" : "3b13e065-ef67-4f49-9da6-5196c50412cb", | ||
"name" : "root.Transcribe", | ||
"app" : "data:text/plain;base64,ewogICJhcHBGaWxlTG9jYXRpb24iIDogIi9Vc2Vycy9taWxvc2xqdWJpbmtvdmljL2dpdC9idW5ueS9yYWJpeC1jbGkvZXhhbXBsZXMvZG5hMnByb3RlaW4vdHJhbnNjcmliZS5jd2wuanNvbiIsCiAgImN3bFZlcnNpb24iIDogInYxLjAiLAogICJpbnB1dHMiIDogWyB7CiAgICAiaWQiIDogImlucHV0X2ZpbGUiLAogICAgInR5cGUiIDogIkZpbGUiLAogICAgImlucHV0QmluZGluZyIgOiB7CiAgICAgICJwb3NpdGlvbiIgOiAzLAogICAgICAicHJlZml4IiA6ICItZCIKICAgIH0sCiAgICAiZGVzY3JpcHRpb24iIDogIklucHV0IGZpbGUiCiAgfSwgewogICAgImlkIiA6ICJ2ZXJib3NlIiwKICAgICJ0eXBlIiA6IFsgIm51bGwiLCAiYm9vbGVhbiIgXSwKICAgICJpbnB1dEJpbmRpbmciIDogewogICAgICAicG9zaXRpb24iIDogNCwKICAgICAgInByZWZpeCIgOiAiLS12ZXJib3NlIiwKICAgICAgInNlcGFyYXRlIiA6IHRydWUKICAgIH0KICB9LCB7CiAgICAiaWQiIDogIm91dHB1dF9maWxlbmFtZSIsCiAgICAidHlwZSIgOiBbICJudWxsIiwgInN0cmluZyIgXSwKICAgICJkZXNjcmlwdGlvbiIgOiAiU3BlY2lmeSBvdXRwdXQgZmlsZW5hbWUiCiAgfSBdLAogICJvdXRwdXRzIiA6IFsgewogICAgImlkIiA6ICJvdXRwdXRfZmlsZV9nbG9iIiwKICAgICJ0eXBlIiA6ICJGaWxlIiwKICAgIC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XHR0cmFuc2NyaWJlKGFyZ3MpIiwKICAgICAgImVudHJ5bmFtZSIgOiAidHJhbnNjcmliZV9hcmdwYXJzZS5weSIKICAgIH0gXQogIH0gXSwKICAic3VjY2Vzc0NvZGVzIiA6IFsgXSwKICAic3Rkb3V0IiA6ICIke3JldHVybiBpbnB1dHMub3V0cHV0X2ZpbGVuYW1lIHx8ICdybmEnICsgJy50eHQnfSIsCiAgImJhc2VDb21tYW5kIiA6IFsgInB5dGhvbiIsICJ0cmFuc2NyaWJlX2FyZ3BhcnNlLnB5IiBdLAogICJhcmd1bWVudHMiIDogWyBdLAogICJkZXNjcmlwdGlvbiIgOiAiVGhpcyBwcm9qZWN0IHdhcyBjcmVhdGVkIHRvIGRlbW9uc3RyYXRlIHRoZSB1c2Ugb2YgYXJncGFyc2UgdG8gY3JlYXRlIENMSSB0b29scyBpbiBQeXRob24sIHdyYXAgdGhlbSB1c2luZyBDV0wgdjEuMCwgYW5kIHJ1bm5pbmcgdGhlbS5cblxuVGhpcyB0b29sIHRha2VzIGEgVFhUIGZpbGUgd2l0aCBhIEROQSBzZXF1ZW5jZSBhbmQgY29udmVydHMgdG8gYW4gUk5BIHNlcXVlbmNlLiIsCiAgImxhYmVsIiA6ICJUcmFuc2NyaWJlIiwKICAiY2xhc3MiIDogIkNvbW1hbmRMaW5lVG9vbCIKfQ==", | ||
"status" : "COMPLETED", | ||
"inputs" : { | ||
"input_file" : [ { | ||
"size" : 29, | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/data/input.txt", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/data/input.txt", | ||
"name" : "input.txt", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/data", | ||
"nameroot" : "input", | ||
"nameext" : ".txt", | ||
"checksum" : "sha1$06fec0ada27fe482c082e01fad1dc0e1775ef1c3", | ||
"secondaryFiles" : [ ], | ||
"properties" : { | ||
"sbg:metadata" : null | ||
}, | ||
"$type" : "File" | ||
} ], | ||
"output_filename" : null, | ||
"verbose" : true | ||
}, | ||
"outputs" : { | ||
"output_file_glob" : { | ||
"size" : 29, | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"name" : "rna.txt", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe", | ||
"nameroot" : "rna", | ||
"nameext" : ".txt", | ||
"checksum" : "sha1$3e31c660fdbd1b32b188368ee31d29f79ee42400", | ||
"secondaryFiles" : [ ], | ||
"properties" : { | ||
"sbg:metadata" : null | ||
}, | ||
"$type" : "File" | ||
} | ||
}, | ||
"resources" : { | ||
"cpu" : 8, | ||
"memMB" : 12743, | ||
"diskSpaceMB" : null, | ||
"networkAccess" : false, | ||
"workingDir" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe", | ||
"tmpDir" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe", | ||
"outDirSize" : null, | ||
"tmpDirSize" : null | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
.../examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/.Translate.meta/job.json
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,53 @@ | ||
{ | ||
"id" : "28554025-11c7-35a7-909c-de7bae2f70c0", | ||
"parentId" : "3b13e065-ef67-4f49-9da6-5196c50412cb", | ||
"rootId" : "3b13e065-ef67-4f49-9da6-5196c50412cb", | ||
"name" : "root.Translate", | ||
"app" : "data:text/plain;base64,ewogICJhcHBGaWxlTG9jYXRpb24iIDogIi9Vc2Vycy9taWxvc2xqdWJpbmtvdmljL2dpdC9idW5ueS9yYWJpeC1jbGkvZXhhbXBsZXMvZG5hMnByb3RlaW4vdHJhbnNsYXRlLmN3bC5qc29uIiwKICAiY3dsVmVyc2lvbiIgOiAidjEuMCIsCiAgImlucHV0cyIgOiBbIHsKICAgICJpZCIgOiAiaW5wdXRfZmlsZSIsCiAgICAidHlwZSIgOiAiRmlsZSIsCiAgICAiaW5wdXRCaW5kaW5nIiA6IHsKICAgICAgInBvc2l0aW9uIiA6IDMsCiAgICAgICJwcmVmaXgiIDogIi1yIgogICAgfSwKICAgICJkZXNjcmlwdGlvbiIgOiAiSW5wdXQgZmlsZSB3aXRoIG1STkEgc2VxdWVuY2UiCiAgfSwgewogICAgImlkIiA6ICJvdXRwdXRfZmlsZW5hbWUiLAogICAgInR5cGUiIDogWyAibnVsbCIsICJTdHJpbmciIF0sCiAgICAiZGVzY3JpcHRpb24iIDogIk9wdGlvbmFsIG91dHB1dF9maWxlbmFtZSBzdHJpbmciCiAgfSBdLAogICJvdXRwdXRzIiA6IFsgewogICAgImlkIiA6ICJvdXRwdXRfcHJvdGVpbiIsCiAgICAidHlwZSIgOiAiRmlsZSIsCiAgICAib3V0cHV0QmluZGluZyIgOiB7CiAgICAgICJnbG9iIiA6ICIqLnR4dCIKICAgIH0sCiAgICAiZGVzY3JpcHRpb24iIDogIk91dHB1dCBwcm90ZWluIHNlcXVlbmNlIgogIH0gXSwKICAiaGludHMiIDogWyB7CiAgICAiY2xhc3MiIDogIkRvY2tlclJlcXVpcmVtZW50IiwKICAgICJkb2NrZXJQdWxsIiA6ICJweXRob246Mi1hbHBpbmUiCiAgfSBdLAogICJyZXF1aXJlbWVudHMiIDogWyB7CiAgICAiY2xhc3MiIDogIkluaXRpYWxXb3JrRGlyUmVxd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CBsaW5lIGFyZ3VtZW50cyBcIlwiXCJcblx0cGFyc2VyID0gYXJncGFyc2UuQXJndW1lbnRQYXJzZXIoKVxuXHRwYXJzZXIuYWRkX2FyZ3VtZW50KFwiLXJcIiwgXCItLW1STkFcIiwgdHlwZT1hcmdwYXJzZS5GaWxlVHlwZSgncicpLCBkZWZhdWx0PXN5cy5zdGRpbilcblx0YXJncyA9IHZhcnMocGFyc2VyLnBhcnNlX2FyZ3MoKSlcblxuXHRcIlwiXCIgUnVuIHRoZSBtYWluIG1ldGhvZCBcIlwiXCJcblx0dHJhbnNsYXRlKGFyZ3MpIiwKICAgICAgImVudHJ5bmFtZSIgOiAidHJhbnNsYXRlLnB5IgogICAgfSBdCiAgfSwgewogICAgImNsYXNzIiA6ICJJbmxpbmVKYXZhc2NyaXB0UmVxdWlyZW1lbnQiCiAgfSBdLAogICJzdWNjZXNzQ29kZXMiIDogWyBdLAogICJzdGRvdXQiIDogIiR7cmV0dXJuIGlucHV0cy5vdXRwdXRfZmlsZW5hbWUgfHwgJ3Byb3RlaW4nICsgJy50eHQnfSIsCiAgImJhc2VDb21tYW5kIiA6IFsgInB5dGhvbiIsICJ0cmFuc2xhdGUucHkiIF0sCiAgImFyZ3VtZW50cyIgOiBbIF0sCiAgImRlc2NyaXB0aW9uIiA6ICJUaGlzIHRvb2wgYWxsb3dzIHlvdSB0byB0YWtlIGFuIFJOQSBzZXF1ZW5jZSBhbmQgdHJhbnNsYXRlIHRvIGEgcHJvdGVpbiBwcm9kdWN0IGJhc2VkIG9uIHRoZSBmaXJzdCBkZXRlY3RlZCBPUkYuIiwKICAibGFiZWwiIDogIlRyYW5zbGF0ZSIsCiAgImNsYXNzIiA6ICJDb21tYW5kTGluZVRvb2wiCn0=", | ||
"status" : "COMPLETED", | ||
"inputs" : { | ||
"input_file" : [ { | ||
"size" : 29, | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"name" : "rna.txt", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe", | ||
"nameroot" : "rna", | ||
"nameext" : ".txt", | ||
"checksum" : "sha1$3e31c660fdbd1b32b188368ee31d29f79ee42400", | ||
"secondaryFiles" : [ ], | ||
"properties" : { | ||
"sbg:metadata" : null | ||
}, | ||
"$type" : "File" | ||
} ], | ||
"output_filename" : null | ||
}, | ||
"outputs" : { | ||
"output_protein" : { | ||
"size" : 9, | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt", | ||
"name" : "protein.txt", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate", | ||
"nameroot" : "protein", | ||
"nameext" : ".txt", | ||
"checksum" : "sha1$55adf0ec2ecc6aee57a774d48216ac5a97d6e5ba", | ||
"secondaryFiles" : [ ], | ||
"properties" : { | ||
"sbg:metadata" : null | ||
}, | ||
"$type" : "File" | ||
} | ||
}, | ||
"resources" : { | ||
"cpu" : 8, | ||
"memMB" : 12743, | ||
"diskSpaceMB" : null, | ||
"networkAccess" : false, | ||
"workingDir" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate", | ||
"tmpDir" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate", | ||
"outDirSize" : null, | ||
"tmpDirSize" : null | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/cmd.log
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 @@ | ||
python transcribe_argparse.py -d /Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/data/input.txt --verbose > /Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt |
13 changes: 13 additions & 0 deletions
13
...xamples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/cwl.output.json
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,13 @@ | ||
{ | ||
"output_file_glob" : { | ||
"basename" : "rna.txt", | ||
"checksum" : "sha1$3e31c660fdbd1b32b188368ee31d29f79ee42400", | ||
"class" : "File", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"nameext" : ".txt", | ||
"nameroot" : "rna", | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt", | ||
"size" : 29 | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...li/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/job.err.log
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,2 @@ | ||
Your original DNA sequence: CTACGATCAGCAGCTACGACTACTAGCA | ||
Your translated mRNA sequence: GAUGCUAGUCGUCGAUGCUGAUGAUCGU |
1 change: 1 addition & 0 deletions
1
rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt
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 @@ | ||
GAUGCUAGUCGUCGAUGCUGAUGAUCGU |
33 changes: 33 additions & 0 deletions
33
.../dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/transcribe_argparse.py
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,33 @@ | ||
#!/usr/bin/env/python | ||
import argparse | ||
import re | ||
import sys | ||
|
||
def transcribe(args): | ||
# create a transcription map and use regex to translate | ||
map = {"A":"U", "T":"A", "C":"G", "G":"C"} | ||
map = dict((re.escape(k), v) for k, v in map.iteritems()) | ||
pattern = re.compile("|".join(map.keys())) | ||
DNA = args['dna'].read().strip() | ||
mRNA = pattern.sub(lambda m: map[re.escape(m.group(0))], DNA) | ||
|
||
# write a verbose output to stderr and just mRNA to sdtout | ||
if args['verbose']: | ||
sys.stderr.write("Your original DNA sequence: " + DNA + "\n") | ||
sys.stderr.write("Your translated mRNA sequence: " + mRNA + "\n") | ||
sys.stdout.write(mRNA + '\n') | ||
sys.exit(0) | ||
return mRNA | ||
|
||
if __name__ == "__main__": | ||
""" Parse the command line arguments """ | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-d", "--dna", type=argparse.FileType("r"), default=sys.stdin) | ||
parser.add_argument("-v", "--verbose", action="store_true", default=False) | ||
# By setting args as var(...), it becomes a dict, so 'dna' is a key | ||
# Alternative use: args = parser.parse_args(), and 'dna' is an attr of args! | ||
# You must change how you call the args you parse based on this usage! | ||
args = vars(parser.parse_args()) | ||
|
||
""" Run the desired methods """ | ||
transcribe(args) |
1 change: 1 addition & 0 deletions
1
rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/cmd.log
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 @@ | ||
python translate.py -r /Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Transcribe/rna.txt > /Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt |
13 changes: 13 additions & 0 deletions
13
...examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/cwl.output.json
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,13 @@ | ||
{ | ||
"output_protein" : { | ||
"basename" : "protein.txt", | ||
"checksum" : "sha1$55adf0ec2ecc6aee57a774d48216ac5a97d6e5ba", | ||
"class" : "File", | ||
"dirname" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate", | ||
"location" : "file:///Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt", | ||
"nameext" : ".txt", | ||
"nameroot" : "protein", | ||
"path" : "/Users/milosljubinkovic/git/bunny/rabix-cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt", | ||
"size" : 9 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...cli/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/protein.txt
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 @@ | ||
MLVVDADD |
41 changes: 41 additions & 0 deletions
41
...li/examples/dna2protein/dna2protein.cwl-2018-03-22-135251.500/root/Translate/translate.py
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,41 @@ | ||
#!/usr/bin/env/python | ||
import argparse | ||
import sys | ||
|
||
def translate(args): | ||
mRNA = args['mRNA'].read().strip() | ||
codon_map = {"UUU":"F", "UUC":"F", "UUA":"L", "UUG":"L", | ||
"UCU":"S", "UCC":"S", "UCA":"S", "UCG":"S", | ||
"UAU":"Y", "UAC":"Y", "UAA":"STOP", "UAG":"STOP", | ||
"UGU":"C", "UGC":"C", "UGA":"STOP", "UGG":"W", | ||
"CUU":"L", "CUC":"L", "CUA":"L", "CUG":"L", | ||
"CCU":"P", "CCC":"P", "CCA":"P", "CCG":"P", | ||
"CAU":"H", "CAC":"H", "CAA":"Q", "CAG":"Q", | ||
"CGU":"R", "CGC":"R", "CGA":"R", "CGG":"R", | ||
"AUU":"I", "AUC":"I", "AUA":"I", "AUG":"M", | ||
"ACU":"T", "ACC":"T", "ACA":"T", "ACG":"T", | ||
"AAU":"N", "AAC":"N", "AAA":"K", "AAG":"K", | ||
"AGU":"S", "AGC":"S", "AGA":"R", "AGG":"R", | ||
"GUU":"V", "GUC":"V", "GUA":"V", "GUG":"V", | ||
"GCU":"A", "GCC":"A", "GCA":"A", "GCG":"A", | ||
"GAU":"D", "GAC":"D", "GAA":"E", "GAG":"E", | ||
"GGU":"G", "GGC":"G", "GGA":"G", "GGG":"G",} | ||
|
||
protein = '' | ||
# find the start codon and proceed until a 'STOP' | ||
start = mRNA.find('AUG') | ||
if start != -1: | ||
while start+2 < len(mRNA): | ||
protein += codon_map[mRNA[start:start+3]] | ||
start += 3 | ||
protein = protein[:protein.find('STOP')] | ||
print protein | ||
|
||
if __name__ == "__main__": | ||
""" Parse the command line arguments """ | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-r", "--mRNA", type=argparse.FileType('r'), default=sys.stdin) | ||
args = vars(parser.parse_args()) | ||
|
||
""" Run the main method """ | ||
translate(args) |
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
Oops, something went wrong.