UofS-Pulse-Binfo / genotypes_loader

A Drush-based loader for VCF files that follows the genotype storage rules outlined by ND genotypes.
GNU General Public License v2.0
1 stars 2 forks source link

Allow multiple organisms in a single load #2

Closed carolyncaron closed 6 years ago

carolyncaron commented 7 years ago

Currently only genotypes for a single organism can be loaded from a single file, but we may have diversity panels with mixed species. One way to accomplish this would be to optionally allow the organism to be specified on a per-sample basis in the user-supplied samples list.

carolyncaron commented 7 years ago

A second option is to check the database for a stock or germplasm without assuming organism. If the stock/germplasm is not unique, prompt the user through drush to choose the one they intended. This could get tedious for hundreds of samples but we could also bypass multiple prompts by allowing an additional column in the samples file specifying the common name of the organism.

When a user interface is being implemented, we can avoid the samples file entirely and use autocompletes for the user to select stocks/germplasm, which thankfully will also take care of this problem.

carolyncaron commented 7 years ago

The option to supply multiple organisms has now been implemented. This can be done providing it for each sample within the samples file in the 7th column (6th column is delegated for germplasm type (Individual, Variety, etc..) and is also a new feature).

This issue will remain open until:

carolyncaron commented 7 years ago

Oops... didn't mean to close the issue immediately after commenting that it would remain open!

laceysanderson commented 6 years ago

Fixed by PR 🎉