Mercurial > repos > bgruening > trna_prediction
comparison tRNAscan.py @ 3:f4416f1a674a draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/trna_prediction commit cfb19d75629f02e0dea4475c16c016ed5510eb44
author | bgruening |
---|---|
date | Wed, 26 Jul 2017 10:13:35 -0400 |
parents | 03d127fd842b |
children |
comparison
equal
deleted
inserted
replaced
2:6d97da269ee2 | 3:f4416f1a674a |
---|---|
6 import sys | 6 import sys |
7 from Bio import SeqIO | 7 from Bio import SeqIO |
8 from Bio.SeqRecord import SeqRecord | 8 from Bio.SeqRecord import SeqRecord |
9 import subprocess | 9 import subprocess |
10 | 10 |
11 | |
12 def main(args): | 11 def main(args): |
13 """ | 12 """ |
14 Call from galaxy: | 13 Call from galaxy: |
15 tRNAscan.py $organism $mode $showPrimSecondOpt $disablePseudo $showCodons $tabular_output $inputfile $fasta_output | 14 tRNAscan.py $organism $mode $showPrimSecondOpt $disablePseudo $showCodons $tabular_output $inputfile $fasta_output |
16 | 15 |
17 tRNAscan-SE $organism $mode $showPrimSecondOpt $disablePseudo $showCodons -d -Q -y -q -b -o $tabular_output $inputfile; | 16 tRNAscan-SE $organism $mode $showPrimSecondOpt $disablePseudo $showCodons -Q -y -q -b -o $tabular_output $inputfile; |
18 """ | 17 """ |
19 cmd = """tRNAscan-SE -Q -y -q -b %s""" % ' '.join( args[:-1] ) | 18 cmd = """tRNAscan-SE -Q -y -q -b %s""" % ' '.join( args[:-1] ) |
20 child = subprocess.Popen(cmd.split(), | 19 child = subprocess.Popen(cmd.split(), |
21 stdout=subprocess.PIPE, stderr=subprocess.PIPE) | 20 stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
22 stdout, stderr = child.communicate() | 21 stdout, stderr = child.communicate() |