Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is uniq working as expected? #1

Open
watronfire opened this issue Nov 13, 2023 · 0 comments
Open

Is uniq working as expected? #1

watronfire opened this issue Nov 13, 2023 · 0 comments

Comments

@watronfire
Copy link

In the new addition to the variant calling script, you concatenate the BED files from BCFtools filtering and the depth mask. I noticed you used the uniq command, which I assume you're using to remove redundant positions in the resulting BED file.

cat $DIR/03_variants/$SAMPLENAME.vcffiltered.bed $DIR/04_assembly/$SAMPLENAME.depthmask.bed | \
uniq > $DIR/04_assembly/$SAMPLENAME.allmask.bed

However, uniq only filters adjacent matching lines, so the stream needs to be sorted beforehand. You should be able to prepend a sort command before uniq to remove redundant lines. Not terribly critical, but might reduce the size of the resulting file and prevent some issues from and out of spec BED file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant