about tracks() in ggbio
2
0
Entering edit mode
Bogdan ▴ 670
@bogdan-2367
Last seen 6 months ago
Palo Alto, CA, USA

Dear all,

I would appreciate a suggestion on the following : I am using the tracks() function "ggbio" in order to represent multiple tracks : eg tracks("track1" = track1, "track2" = track2, ..., "trackn" = trackn , etc) ;

however the presence of track1 or track2, ... trackn,  in the final output depends on some upstream variables :  sometimes, I could include only track1, or track1-and-track2, etc ....

which is the simplest way to display only the tracks that have received 'approval' by a variable, 

 

thank you,

 

bogdan

 

 

ggbio • 1.0k views
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 5 weeks ago
United States

consider do.call(tracks, x)

 

where x is a list whose contents are determined programmatically

0
Entering edit mode
Bogdan ▴ 670
@bogdan-2367
Last seen 6 months ago
Palo Alto, CA, USA

Thanks, Vincent !

ADD COMMENT

Login before adding your answer.

Traffic: 753 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6