Mercurial > repos > rnateam > remurna
diff create_input_file.py @ 0:01f42efba177 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/remurna commit 6e51a331dbeab2786d8df5fd379ae3a63eb61d83
author | rnateam |
---|---|
date | Tue, 13 Dec 2016 11:47:56 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create_input_file.py Tue Dec 13 11:47:56 2016 -0500 @@ -0,0 +1,13 @@ +import sys +import os +wild_fa = sys.argv[1] +snp_tags = sys.argv[2] +outfile = sys.argv[3] +# Write RNA sequence and SNP tags to a outfile +out = open(outfile,'w') +with open (wild_fa) as in_fa_handle: + for line in in_fa_handle: + out.write(line) +with open (snp_tags) as in_snp_handle: + out.write('*'+in_snp_handle.readline()) +out.close()