Skip to content

Commit

Permalink
added a safeguard in one of the weaknesses of transcript_classes
Browse files Browse the repository at this point in the history
  • Loading branch information
conchoecia committed Mar 26, 2020
1 parent 7d1ef88 commit a429e8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions annotation/scripts/transcript_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ def parse_spreadsheet(df, GFFs, CTGm):
for line in lines_split:
if line.strip():
gff_split = line.split('\t')
if len(gff_split) != 9:
print("erroneous line: ", file = sys.stderr)
print(gff_split, file = sys.stderr)
raise IOError("This line was too long.")
#get the info if the gene is spliced in an intron
SII=""
if not pd.isnull(row["spliced_in_intron"]):
Expand Down

0 comments on commit a429e8e

Please sign in to comment.