Closed mshukla1 closed 8 years ago
Kind of afraid to change this one since several services depend on it. I know @levinas and I had worked this out in our first hackathon, but I can't remember if we added some of those other properties because he needed them or what.
What are the field names that you want to make up the string to be proper. It currently looks like this:
var row = ">" + fasta_id + " " + o.product + " [" + o.genome_name + " | " + o.genome_id + "]\n" + o.aa_sequence + "\n";
fixed and deployed to beta.
The fasta header for the dna sequences should have the same format as the protein sequences.
https://www.patricbrc.org/api/genome_feature/?eq(genome_id,83332.12)&eq(feature_type,CDS)&eq(annotation,PATRIC)&limit(100000,0)&http_accept=application/dna+fasta
https://www.patricbrc.org/api/genome_feature/?eq(genome_id,83332.12)&eq(feature_type,CDS)&eq(annotation,PATRIC)&limit(100000,0)&http_accept=application/protein+fasta
However, before making the change, need to make sure it doesn't impact any of the existing services / functionality.
-Maulik