Skip to content

Commit

Permalink
added code to pass test for setting custom type via commandline in fl…
Browse files Browse the repository at this point in the history
…atfile-to-json.pl
  • Loading branch information
justaddcoffee committed Jul 16, 2013
1 parent 30581f2 commit ec94f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/perl5/Bio/JBrowse/Cmd/FlatFileToJson.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ sub option_definitions {
"bam=s",
"out=s",
"trackLabel=s",
"trackType=s",
"key=s",
"cssClass|className=s",
"autocomplete=s",
Expand Down Expand Up @@ -89,6 +90,7 @@ sub run {

my %config = (
type => $self->opt('getType') || $self->opt('type') ? 1 : 0,
csstype => $self->{'opt'}->{'trackType'},
phase => $self->opt('getPhase'),
subfeatures => $self->opt('getSubs'),
style => {
Expand Down
3 changes: 2 additions & 1 deletion src/perl5/GenomeDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ sub writeTrackEntry {
%{ $track->config || {} },
label => $track->label,
key => $track->key,
type => $track->type,
type => $track->{'config'}->{'csstype'} || $track->type,
};

return $trackData;
};

Expand Down

0 comments on commit ec94f45

Please sign in to comment.