Skip to content

Commit a0ad253

Browse files
authored
Merge pull request #535 from WardDeb/master
allow bedmethyl files with a header for bw generation
2 parents 68b540b + e8efee9 commit a0ad253

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The provided packages should be used where possible. We understand that some use
1717
```bash
1818
git clone https://github.com/nanoporetech/modkit.git
1919
cd modkit
20-
cargo install --path .
20+
cargo install --path modkit
2121
# or
2222
cargo install --git https://github.com/nanoporetech/modkit.git
2323
```

modkit-core/src/bedmethyl_util/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ impl<R: BufRead> BedMethylStream<R> {
3939
if b == 0 {
4040
break;
4141
}
42+
if buf.trim_start().starts_with('#') {
43+
continue;
44+
}
4245
let bm_record = BedMethylLine::parse(&buf)?;
4346
let keep = mod_codes.contains(&bm_record.raw_mod_code);
4447
if keep {

0 commit comments

Comments
 (0)