-
Notifications
You must be signed in to change notification settings - Fork 3
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
Assemblies should include sample name as part of the file name #26
Comments
One thing to note that the files are named |
Thanks @ericenns . This is actually what the It's not the file name saved on the filesystem, but the prefix (or the full label) should be used when naming files returned to a user. |
Here is an example of one place where this is used to rename the analysis output files sent to a user to include the sample name (stored as the label). This executes this line to add the prefix for an output file name: |
Yeah I saw that for analysis output files, but for assembly files they actually show up as |
I may be misunderstanding, but isn't this what we already do? For genomes that are uploaded, the For genomes that are assembled in IRIDA, the |
My mistake, I was under the wrong impression that they showed up as |
I believe the other issue is with this line of code:
It is not using the sample name as derived from the JSON representation to name the data in Galaxy, but using the physical file name of the filesystem path to name the data in Galaxy. |
For assemblies imported into Galaxy, they currently are named
contigs.fasta
.However, in IRIDA the assembly has the sample name included as part of the file name:
This is likely due to this particular line of code:
irida-galaxy-importer/irida_import/irida_import.py
Line 182 in 8b85bad
This is grabbing the
fileName
value instead of thelabel
from the REST API. Thelabel
should have the label which includes the sample name: https://phac-nml.github.io/irida-documentation/developer/rest/#assembliesThis is called from this bit of code:
irida-galaxy-importer/irida_import/irida_import.py
Line 108 in 8b85bad
Since this same function is used for getting sequence files from a sample, a bit of additional logic will likely need to be added to decide if the file is an assembly file.
The text was updated successfully, but these errors were encountered: