Mercurial > repos > gianmarco_piccinno > project_rm
diff codon_usage.py @ 31:3cb2af2435d3 draft
Uploaded
author | gianmarco_piccinno |
---|---|
date | Wed, 12 Dec 2018 08:48:22 -0500 |
parents | e85a1feaaf38 |
children | 6e6b1fd6eda1 |
line wrap: on
line diff
--- a/codon_usage.py Wed Dec 12 08:23:56 2018 -0500 +++ b/codon_usage.py Wed Dec 12 08:48:22 2018 -0500 @@ -9,7 +9,6 @@ import sys import os import pandas as pd -#from BCBio import GFF def read_input(data = "example.fna", type_ = "fasta"): @@ -143,7 +142,7 @@ seqs = read_input(data=args['input'], type_=args['type']) out = codon_usage(seqs, args['codonTable']) - with open(args['output'], "w") as outf: + with open(args['output']+".csv", "w") as outf: out["Table"].to_csv(outf, sep="\t", index_label=["AA", "Codon"]) \ No newline at end of file