filter_genes_by_strand#
- GeneExpressionData.filter_genes_by_strand(strand)[source]#
Filters gene rows to those matching
strand('+','-', or'.').Unlike
filter_to_positive_strand()/filter_to_negative_strand()which filter track columns viatrack_metadata['strand'], this filters rows viagene_metadata['strand'].- Parameters:
strand (
str) – Gene strand to retain ('+','-', or'.').- Return type:
- Returns:
A new
GeneExpressionDataobject containing only matching gene rows.- Raises:
ValueError – If
strandis not a valid strand option or'strand'is missing fromgene_metadata.