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

demultiplex.py put_output error #23

Open
MagnificaScience opened this issue Dec 7, 2018 · 0 comments
Open

demultiplex.py put_output error #23

MagnificaScience opened this issue Dec 7, 2018 · 0 comments

Comments

@MagnificaScience
Copy link

Hello Thomas,

There appear to be 3 bugs in put_output within demultiplex.py
Line 656

seq1_name = '%(code)s_%(Flowcell)s_s_%(lane)s_fastq.txt' % \
            ({'code': 'R1samplecode123', 'Flowcell': Flowcell, 'lane': Lane})

Should be

seq1_name = '%(code)s_%(Flowcell)s_s_%(lane)s_fastq.txt' % \
            ({'code': 'R1_%s' % opts.output.split('/')[-2], 'Flowcell': Flowcell, 'lane': Lane})

With the a similar change required on line 658.

Line 660 is
if not os.exists(os.path.join(dir_in, seq1_name)):
which does not work, but this does:
if not os.path.exists(os.path.join(dir_in, seq1_name)):

With these changes made, the output for --match1 and --match2 end up with the right filename in the right place.

Thanks,
Jason

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