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

load_mocat_sample - missing pair.2 fails, missing pair.1 succeeds #120

Closed
unode opened this issue Sep 10, 2019 · 5 comments
Closed

load_mocat_sample - missing pair.2 fails, missing pair.1 succeeds #120

unode opened this issue Sep 10, 2019 · 5 comments
Assignees
Labels

Comments

@unode
Copy link
Member

unode commented Sep 10, 2019

If the folder contains:

sample
├── sample.pair.1.fq.bz2
└── sample.single.fq.bz2

using load_mocat_sample() fails with the error:

Cannot find match for file: sample/sample.pair.1.fq.bz2

However in the case of:

sample
├── sample.pair.2.fq.bz2
└── sample.single.fq.bz2

it succeeds with:

(...) load_mocat_sample found single-end sample 'sample/sample.pair.2.fq.bz2'
(...) load_mocat_sample found single-end sample 'sample/sample.single.fq.bz2'

Should we also fail here due to an unpaired pair.2 and be symmetrical with the pair.1 case?

@luispedro
Copy link
Member

It's a strange corner case, but I think it could be a good thing to at least issue a warning.

@unode
Copy link
Member Author

unode commented Sep 11, 2019

Would you oppose making it into an error instead of warning? Rationale being that if it matches pair.X but there's no pair.Y something unexpected happened and the warning might go by unnoticed.

@luispedro
Copy link
Member

No objection. Never silently screw up is one of the principles that we try to adhere to and I can see how a warning may be too tame.

@unode
Copy link
Member Author

unode commented Sep 11, 2019

I'll make it into an error then as soon as I find the time. Thanks for the feedback.

@unode
Copy link
Member Author

unode commented Oct 18, 2019

As of 68188ed an error will be raised if pair.2 exists but pair.1 doesn't.

@unode unode closed this as completed Oct 18, 2019
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