Skip to content

Commit

Permalink
read in file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie22 committed May 7, 2022
1 parent 14960e3 commit 66b1737
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions genes_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@

### Read inputs from the command line
# sambamba output file (tsv)

sambamba_file = sys.argv[1]
# coverage threshold (default to 30)

if len(sys.argv) > 2:
coverage_threshold = sys.argv[2]
else:
coverage_threshold = "30"
coverage_column = "percentage" + coverage_threshold

### Load sambamba output file contents into a DataFrame
sambamba_df = pd.read_csv(sambamba_file, sep='\t')
print(sambamba_df.columns)
print(sambamba_df.head())

### Identify exons with less than 100% coverage at 30x

Expand Down

0 comments on commit 66b1737

Please sign in to comment.