view create_input_file.py @ 0:b1f5d49a6f30 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 12:32:11 -0500
parents
children
line wrap: on
line source

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()