Closed carolyncaron closed 6 years ago
I combed through master and found the following commits pertaining to this issue: Main commit (with Github comments!): 0c07268deac60fb68668b0eb0589dac1e8216a25 Bug fixes: 9e52c8df3dd46c11511b414c432348e00e24d25a, 99b9ddc3d2aec73c56b34bd6c4a4c6326097ace4 Lines 297-8 of ca0c22bdc3c56be1d476b220a7c22208331d787e (the commit itself is pretty large π, though primarily due to adding error checking π)
Works as expected! π
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"