Skip to content

Commit

Permalink
Merge pull request #19 from complextissue/dev
Browse files Browse the repository at this point in the history
Require minimum length of 1 for RSEM data
  • Loading branch information
maltekuehl authored Oct 2, 2024
2 parents 097edae + 658610f commit 023d1cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytximport/importers/_read_rsem.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ def read_rsem(
abundance_column=abundance_column,
)

# Set the minimum length to 1
transcript_data["length"] = transcript_data["length"].clip(min=1) # type: ignore

return transcript_data

0 comments on commit 023d1cc

Please sign in to comment.