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

ValueError: No objects to concatenate #26

Open
linzhi2013 opened this issue Apr 5, 2022 · 0 comments
Open

ValueError: No objects to concatenate #26

linzhi2013 opened this issue Apr 5, 2022 · 0 comments

Comments

@linzhi2013
Copy link

Hi Tobias,

When SEQCAP tries to locate the sample folders at the very beginning (see the assemble_reads.py file and below codes)

def main(args):
    input_folder = args.input
    cores = args.cores
    subfolder_list = [subfolder for subfolder, __, __ in os.walk(input_folder) if os.path.basename(subfolder) != os.path.basename(input_folder)]

The os.walk() does not work for symbolic links, so the subfolder_list is empty, which then raises the following error:
image

There are several reasons for using symbolic links in the input_folder for the sample directories:

  1. In my case, I have 97 samples, and SEQCAP always failed when it just finished 81 samples. Therefore, I would like to link the fastq files of unfinished samples into a new directory, but the os.walk() does not work for symbolic links.

  2. When the users already have decompressed fastq files with different naming formats, it makes sense if the users can just create an input_folder and link these fastq files into this folder while renaming the fastq files at the same time.

The solution is simple, just change the code into:

os.walk(input_folder, followlinks=True)

But maybe you have some reasons not to do so?

Thanks!

Guanliang

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