Skip to content

Commit

Permalink
Update function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Adoni5 committed Dec 1, 2023
1 parent 0748eea commit b49759b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use std::path::PathBuf;
let bam_path = PathBuf::from("path/to/bam/file.bam");
// Iterate over the BAM file and calculate CNV values for each bin. Number of threads is set to 4 and mapping quality filter is set to 60.
// If number of threads is not specified, it defaults to the number of logical cores on the machine.
let result = iterate_bam_file(bam_path, Some(4), Some(60));
let result = iterate_bam_file(bam_path, Some(4), Some(60), None, None);
// Process the result...
```

Expand Down Expand Up @@ -117,7 +117,7 @@ We use the `log` crate for logging. By default, the log level is set to `INFO`,

import logging
from cnv_from_bam import iterate_bam_file
iterate_bam_file(bam_path, _threads=4, mapq_filter=60, log_level=logging.getLevelName(logging.WARN))
iterate_bam_file(bam_path, _threads=4, mapq_filter=60, log_level=int(logging.WARN))

```

Expand Down

0 comments on commit b49759b

Please sign in to comment.