Skip to content

Commit

Permalink
Option to run on all transcripts (#10)
Browse files Browse the repository at this point in the history
* Option to run the script on all transcripts
  • Loading branch information
fgypas authored Jun 17, 2021
1 parent 6078e47 commit 9345a3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/gtf2bed12
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
parser.add_argument(
"--transcript_type",
dest="transcript_type",
help="Transcript type [Default: protein_coding]",
help="Transcript type [Default: protein_coding]. Please specify `all` for all transcripts.",
required=False,
default="protein_coding"
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='zgtf',
version='0.1.1',
version='0.1.2',
description="gtf conversion utility.",
author="Foivos Gypas",
author_email='[email protected]',
Expand Down
5 changes: 3 additions & 2 deletions zgtf/zgtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def gtf_to_transcript_exons(gtf, transcript_type):
sys.stderr.write(f"Problem with: {gtf_line}. Exiting.{os.linesep}")
sys.exit(1)

if tr_type != transcript_type:
continue
if transcript_type != "all":
if tr_type != transcript_type:
continue

if tr_id not in transcripts:
transcripts[tr_id] = [gtf_line]
Expand Down

0 comments on commit 9345a3c

Please sign in to comment.