-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add prefix to data file path #7
Comments
Yes, this is very easy to do, and a perfect use case for PEP. The best way to do this would be:
For an example you could look at the
and your sample table would be:
If you want more of the info in the sample table, you can also do something like this:
and your sample table would be:
|
Thanks, I was hoping to be able to do this in one go, without adding any new 'dummy' columns to the sample table. But I guess having a Would it be possible to add the functionality to derive values from themselves? I don't think there is anything in the docs that disallows something like |
Actually, sure, you can also do that by just using the
This works if your samples all have the same data path. You'd have to use an imply modifier if you want it to vary across samples.
Interesting. I don't even know if this would work -- it may work. I have never tried it. Did you try it? It does seem convenient but I'm not sure I like the overloading of the attribute like that... it's nice to have access to the original I think the above method of combining an |
I have a project where input filenames cannot be derived from sample attributes, but are determined by the outside provider. I would still like to use PEP to simplify my sample list.
Is there a way to simply add a prefix to the path for a data file?
For example, I would like to have
project-id/external_id_L001.fastq.gz
in my sample configuration, and then extend this into/current/path/for/data/files/project-id/external_id_L001.fastq.gz
. This seems like a simple enough use case, is this possible using PEP?The text was updated successfully, but these errors were encountered: