Skip to content

fix read headers in metagenome simulation#167

Merged
kmnip merged 1 commit intoBirolLab:masterfrom
LokiLuciferase:master
Jun 28, 2022
Merged

fix read headers in metagenome simulation#167
kmnip merged 1 commit intoBirolLab:masterfrom
LokiLuciferase:master

Conversation

@LokiLuciferase
Copy link
Contributor

@LokiLuciferase LokiLuciferase commented Jun 9, 2022

Hi,

When running metagenome simulations while outputting fastq files, with the most recent version of NanoSim 3.1, I found that read headers are empty (consisting only of the initial @ but no other information). It seems like right before finalization of a read, the header is set to the empty string once again. This PR fixes this.

I have attached a directory (test_case_nanosim.tar.gz) containing all required files for building a docker container which replicates the issue, and demonstrates the fix described in this PR, which can be built and executed by running docker build ..

@kmnip kmnip requested a review from saberhq June 9, 2022 20:10
@kmnip
Copy link
Collaborator

kmnip commented Jun 9, 2022

Good catch!

@kmnip kmnip self-assigned this Jun 28, 2022
@kmnip kmnip merged commit 8341c2f into BirolLab:master Jun 28, 2022
@kmnip kmnip requested review from kmnip and removed request for saberhq June 28, 2022 17:31
@kmnip
Copy link
Collaborator

kmnip commented Jun 28, 2022

@saberhq , I tested the code in a test simulation and the read name looks good.
Thanks @LokiLuciferase for your PR!

@kmnip kmnip removed their request for review June 28, 2022 18:10
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

Successfully merging this pull request may close these issues.

2 participants