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
This is duplicated code, instead a function taking a read should be used.
It looks like its simply building a set since utrons_coords is initialised as a dictionary and only the transcripts_read values are used as keys, nothing gets assigned to the value of the dictionary.
tx2gene is a dictionary of non-transcript data from the GTF file. where the key is the gene_id and the value is the transcript_id
So this is pulling out of that dictionary transcript_id for reads that have been assigned where the tag ix XT.
These are then sum(), not clear why an empty list is passed in here?
Early skeleton, need to look at this more closely.
defextract_utrons(read: ?, tag: str="XT") ->dict:
""" Extract utrons from assigned transcripts. Parameters ---------- read : ? A read. tag : str Tag to extract, default is 'XT'. Returns ------- tuple[transcript, utron] Description """ifread.get_tag("XS") =="Assigned":
return {}
defsum_utrons(read: ?, tag: str="XT") ->int:
returnsum(extract_utrons(read, tag))
The text was updated successfully, but these errors were encountered:
Currently we have...
This is duplicated code, instead a function taking a read should be used.
It looks like its simply building a set since
utrons_coords
is initialised as a dictionary and only thetranscripts_read
values are used as keys, nothing gets assigned to thevalue
of the dictionary.tx2gene
is a dictionary of non-transcript data from the GTF file. where the key is thegene_id
and the value is thetranscript_id
So this is pulling out of that dictionary
transcript_id
for reads that have been assigned where the tag ixXT
.These are then
sum()
, not clear why an empty list is passed in here?Early skeleton, need to look at this more closely.
The text was updated successfully, but these errors were encountered: