Annotation-free quantification of RNA splicing. Yang I. Li, David A. Knowles, Jack Humphrey, Alvaro N. Barbeira, Scott P. Dickinson, Hae Kyung Im, Jonathan K. Pritchard
leafcutter-ds would error out when no confounder columns were present in group_file, this is an attempt to fix that.
A default confounders = None variable is set
A chunk of code that manipulates the confounders DataFrame was pushed up into the if len(meta.columns) > 2 block
If no confounders are present, the counts DataFrame is subset to just include the samples defined in meta
Please note I'm not a Python or pandas guru, so I'm sure there may be better (more idiomatic) ways to do this, but this seems to do what I think is intended to setup the ultimate call to differential_splicing()
leafcutter-ds
would error out when no confounder columns were present ingroup_file
, this is an attempt to fix that.confounders = None
variable is setconfounders
DataFrame was pushed up into theif len(meta.columns) > 2
blockcounts
DataFrame is subset to just include the samples defined inmeta
Please note I'm not a Python or pandas guru, so I'm sure there may be better (more idiomatic) ways to do this, but this seems to do what I think is intended to setup the ultimate call to
differential_splicing()