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

Read length not being included sometimes in mapping_illumina for viralrecon #373

Open
victor5lm opened this issue Dec 9, 2024 · 1 comment
Assignees

Comments

@victor5lm
Copy link
Contributor

As per the title, in some cases, the read length column in the mapping_illumina.tab file from viralrecon is not completed. Please check why this is happening.

@victor5lm
Copy link
Contributor Author

This is solved by indicating that there could be an optional single quote between the sample name (this happens when the sample name is a number), by means of grep -E:

read_length=$(cat ${arr[1]}*/multiqc/multiqc_data/multiqc_fastqc.yaml | grep -A5 -E "'?${arr[0]}_1'?:$" | grep "Sequence length:" | tr "-" " " | rev | cut -d " " -f1 | rev)

@victor5lm victor5lm self-assigned this Dec 9, 2024
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