Skip to content

Commit

Permalink
Make the trimming of <> happen in middle of string too
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 15, 2018
1 parent 3ab8b7a commit 62a03ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/JBrowse/Store/SeqFeature/VCFTabix/Parser.js
Expand Up @@ -232,7 +232,8 @@ return declare( null, {
"DUP:TANDEM": { description: "Tandem duplication", so_term: 'copy_number_gain' },
"DEL:ME": { description: "Deletion of mobile element relative to the reference" },
"INS:ME": { description: "Insertion of a mobile element relative to the reference" },
"NON_REF": { description: "Represents any possible alternative allele at this location", so_term: "biological_region" }
"NON_REF": { description: "Represents any possible alternative allele at this location", so_term: 'alternate_sequence_site' },
"*": { description: "Represents any possible alternative allele at this location", so_term: 'alternate_sequence_site' }
},

/**
Expand Down Expand Up @@ -377,7 +378,7 @@ return declare( null, {
if( ! alt )
return 'no alternative alleles';

alt = alt.replace(/^<|>$/g,'');
alt = alt.replace(/<|>/g,'');

var def = this.getVCFMetaData( 'alt', alt );
return def && def.description ? alt+' - '+def.description : SO_term+" "+ref+" -> "+ alt;
Expand Down

0 comments on commit 62a03ec

Please sign in to comment.