Mercurial > repos > rnateam > remurna
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:01f42efba177 |
---|---|
1 import sys | |
2 import os | |
3 wild_fa = sys.argv[1] | |
4 snp_tags = sys.argv[2] | |
5 outfile = sys.argv[3] | |
6 # Write RNA sequence and SNP tags to a outfile | |
7 out = open(outfile,'w') | |
8 with open (wild_fa) as in_fa_handle: | |
9 for line in in_fa_handle: | |
10 out.write(line) | |
11 with open (snp_tags) as in_snp_handle: | |
12 out.write('*'+in_snp_handle.readline()) | |
13 out.close() |