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

preprocessing step doesn't produce bowtie2 compatable fasta reference from input long fastq #5

Open
nickschurch opened this issue Aug 13, 2018 · 1 comment
Assignees
Labels

Comments

@nickschurch
Copy link

hercules help suggests that it can use a fastq as input for the long reads. the preprocessing step works fine, but then the suggested bowtie2 steps fail because bowtie2-build requires a fasta reference and compressed_long is still a fastq (albeit one with all the quality information removed).

@canfirtina
Copy link
Member

canfirtina commented Aug 13, 2018

Hello Nick,

Thank you for the notice. Yes, I noticed the problem. It is because the function I wrote ignores the extension of a file as follows:

hercules/src/main.cpp

Lines 1201 to 1206 in b232b01

std::string getBasename(std::string fullPath){
size_t baseStart = fullPath.rfind(SEPERATOR, fullPath.length());
if( baseStart != std::string::npos)
return fullPath.substr(baseStart+1, fullPath.length() - baseStart);
return fullPath;
}

It will be fixed in the next commit. For now, you can simply change the file extension of the compressed file from fastq to fasta and try running bowtie2-build

@canfirtina canfirtina self-assigned this Aug 13, 2018
@canfirtina canfirtina added the bug label Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants