You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chrismit edited this page Feb 19, 2014
·
3 revisions
This is one example of how to get the GFFObjects corresponding to a transcript in cufflinks.
importpythomics.genomics.parsersasgpgff=gpp.GFFReader('transcripts.gtf', preset='cufflinks')
forfeature_name, featureingff.get_features():
#this is almost right, but not exactly since cufflinks puts in a 'transcript' type it will be wrong# print feature_name, feature.parts()#this addresses thisprintfeature_name, [iforiinfeature.parts() ifi.type!='transcript']