Skip to content
Snippets Groups Projects
Commit a18dade3 authored by Will Spooner's avatar Will Spooner
Browse files

Standardised fasta headers

parent e12f72ef
No related branches found
No related tags found
No related merge requests found
......@@ -859,19 +859,14 @@ sub dump_fasta {
my $slice = shift;
my $FH = shift;
my $species;
my $spec = $slice->adaptor->db->get_MetaContainer->get_Species();
if($spec) {
$species = $spec->binomial();
} else {
$species = '';
}
my $name = $slice->name;
my $id = $slice->seq_region_name;
my $seqtype = 'dna';
my $idtype = $slice->coord_system->name;
my $location = $slice->name;
my $start = 1;
my $end = $slice->length();
my $header = ">$species|$name\n";
my $header = ">$id $seqtype:$idtype $location\n";
print $FH $header;
#set the formatting to FASTA
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment