Added ability to handle mutliple organisms + different germplasm types #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses Issue #2
Implementation began last year was and was committed to the master branch, so this pull request is meant to finalize the functionality (and follow best practices 👍). Additions were:
Commands for testing:
drush sql-query "INSERT INTO chado.organism (genus, species, common_name, comment) VALUES ('Felis', 'catus', 'Cat', 'The domestic cat is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. They are often valued by humans for companionship and for their ability to hunt vermin.')"
drush sql-query "INSERT INTO chado.organism (genus, species, common_name, comment) VALUES ('Felis', 'silvestris', 'Wild Cat', 'Wild cats are found throughout continental Europe, southwestern Asia, and the savannah regions of Africa. Felis silvestris is currently regarded as being made up of three, distinct groups (or subspecies): F. silvestris lybica, African wild cats, F. silvestris silvestris, European wild cats, and F. silvestris ornata, Asiatic wild cats.')"
drush sql-query "INSERT INTO chado.project (name, description) VALUES ('My SNP Discovery Project', 'I discovered some SNPs in cats.')"
drush php-eval "tripal_insert_cvterm(array( 'id' => 'stock_type' . ':' . 'Individual', 'name' => 'Individual', 'cv_name' => 'stock_type', ));"
drush php-eval "chado_insert_record('feature', array( 'name' => '1A', 'uniquename' => '1A', 'organism_id' => array( 'genus' => 'Felis', 'species' => 'catus', ), 'type_id' => array( 'cv_id' => array( 'name' => 'sequence', ), 'name' => 'chromosome', 'is_obsolete' => 0 )));"
drush load-genotypes sample_files/cats.vcf sample_files/cats.list --marker-type="genetic_marker" --variant-type="SNP" --organism="Felis catus" --project-name="My SNP Discovery Project" --ndgeolocation="here"
drush load-genotypes sample_files/sample.vcf sample_files/samples.list --marker-type="genetic_marker" --variant-type="SNP" --organism="Lens culinaris" --project-name="Issue2 Genotypes Loader Test" --ndgeolocation="here"