Skip to content

Commit

Permalink
rm lines and added section for running script once I have worked out …
Browse files Browse the repository at this point in the history
…final structure.
  • Loading branch information
RSWilson1 committed Sep 8, 2023
1 parent edff513 commit 78a2c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ and bed file aligned with the respecive annotation.
- re

install using `requirements.txt`. `pip install requirements.txt`

## Running Script
20 changes: 2 additions & 18 deletions igv_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_igv_report(bed_file, maf_file, genome, reference_file, info_columns,
{
"name": 'BED',
"type": '',
"url": f'{bed_file}.gz', # /home/rswilson1/Documents/Programming_project/gene_annotation2bed/output_hg19_overlap_test7.bed.gz
"url": f'{bed_file}.gz',
"indexURL": f'{bed_file}.gz.tbi'
},
]
Expand All @@ -56,7 +56,7 @@ def create_igv_report(bed_file, maf_file, genome, reference_file, info_columns,
maf_based_cmd = [
"create_report",
maf_file,
"--fasta", reference_file, # /home/rswilson1/Documents/MSC_dissertation/MELT_example_data/hs37d5.fa
"--fasta", reference_file,
"--sequence", "1",
"--begin", "2",
"--end", "3",
Expand All @@ -77,22 +77,6 @@ def create_igv_report(bed_file, maf_file, genome, reference_file, info_columns,
"--output", output_file
]

# maf_based_cmd = [
# "create_report",
# "/home/rswilson1/Documents/Programming_project/gene_annotation2bed/output_hg19_overlap_test5_edit.maf",
# "--sequence", "1",
# "--begin", "2",
# "--end", "3",
# "--fasta", "/home/rswilson1/Documents/MSC_dissertation/MELT_example_data/hs37d5.fa",
# "--zero_based", "true",
# #"--info-columns", "chr", "start", "end", "annotation", "gene", # info_columns
# "--tracks", bed_file,
# "--track-config", "TracksConfig.json",
# #"--genome", genome,
# "--title", title,
# "--output", output_file
# ]

result = subprocess.run(maf_based_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(result.returncode)
print("Standard Output:", result.stdout)
Expand Down

0 comments on commit 78a2c8f

Please sign in to comment.