Giter Club home page Giter Club logo

mainlab_chado_loader's Introduction

alt tag

Tripal 4 (Drupal 10)

               _   _                 _____                 _                                  _
     /\       | | (_)               |  __ \               | |                                | |
    /  \   ___| |_ ___   _____      | |  | | _____   _____| | ___  _ __  _ __ ___   ___ _ __ | |_
   / /\ \ / __| __| \ \ / / _ \     | |  | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
  / ____ \ (__| |_| |\ V /  __/     | |__| |  __/\ V /  __/ | (_) | |_) | | | | | |  __/ | | | |_
 /_/    \_\___|\__|_| \_/ \___|     |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__|
                                                                  | |
                                                                  |_|

Compatibility

Target Drupal Version 10.2.x-dev

Tested on PostgreSQL 13 + PostgreSQL 16

Drupal 10.2.x 10.3.x
PHP 8.1 Grid81-102-Badge Grid81-103-Badge
PHP 8.2 Grid82-102-Badge Grid82-103-Badge
PHP 8.3 Grid83-102-Badge Grid83-103-Badge

Code Coverage

This project uses Code Climate to determine the quality of our codebase and the coverage of our test suite. Compatibility above is based on passing of this test suite.

Test Coverage

Maintainability

Current Timeline

Required for Tripal 4.alpha3 Release

  • Display suite / page work
  • Importers: Publications
  • Search (ElasticSearch + Views)

How to get involved!

This upgrade to Drupal 10 is a community effort. As such, we NEED YOUR HELP!

  • To get involved, please join our Tripal Slack and comment in the #core-dev channel.
    • Alternatively, feel free to contact Lacey-Anne Sanderson through Slack direct message.
    • We can use help both with programming, documentation, outreach and welcome all individuals from all backgrounds!
  • We prefer automated testing for all Pull Requests (PRs) and are happy to guide you through the process!
    • Just comment on the issue if you need help designing tests
    • If you need help implementing tests see our documentation
  • If more documentation would be helpful, please create an issue here and we'll add it.

Documentation

Documentation for Tripal 4 has begun on ReadtheDocs.

Tripal Docker

Tripal Docker is currently focused on Development and Automated Testing. There will be a production focused Tripal Docker soon and if you're interested in helping or providing tips -please join us on our Slack channel!

For more information about how to use our fully functional development docker, see our documentation on ReadtheDocs!

mainlab_chado_loader's People

Contributors

leetaei avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mainlab_chado_loader's Issues

install required vocabulary?

Each of the loaders requires a number of CVterms installed on the site. For example, the featuremap loader requires the below cvterms

>Required cvterms
Error : Could not find cvterm : alias [cv_id = 21695].
Error : Could not find cvterm : analysis_method [cv_id = 21695].
Error : Could not find cvterm : software [cv_id = 21695].
Error : Could not find cvterm : map_type [cv_id = 21695].
Error : Could not find cvterm : population_type [cv_id = 21695].
Error : Could not find cvterm : population_size [cv_id = 21695].
Error : Could not find cvterm : source_url [cv_id = 21695].
Error : Could not find cvterm : comments [cv_id = 21695].
Error : Could not find cvterm : genome_group [cv_id = 21695].

Is there a separate module or command that sets up this site CV with all the terms the loader expects? Should they have been inserted on installing this module?

I can otherwise insert the terms manually as I get the errors. I see you have a nice drush command that automatically inserts the term into the right CV, ie , drush mcl-add-cvterm comments

MCL uploading issue

I've created a test template excel file of genotype_snp type which is comprised of db, dataset, stock and genotype_snp sheets. When I uploaded the excel with MCL, it failed with error logs like this:

Error Logs
[stock]

row 2 --------------
(name) = () not found in db
Invalid stock type : cultivar

For the first error, does it mean the stock name should exist in the db sheet ? But I can't find this header in db.
For the second error, is stock type same as germplasm_type? Shouldn't I select from the choices given in the header description?

image

image

Thanks

MCL pub loader automatically generated citation not appearing

Currently, the MCL pub loader will handle a missing value in the 'citation' column of the excel sheet by generating a citation, appropriate for the publication type.

However, this citation is only used to populate the 'uniquename' ('Unique Local Identifier') attribute (tripal field data__identifier), the actual citation remains blank (tripal field tpub__citation).

I propose to also use this same generated value to populate this citation field (stored in pubprop with type_id from cv tripal_pub, cvterm Citation)

Nevermind, I should be at the gitlab repository

About location search tool

Dear all
I'm using marker search module (ver.2) and attempting to use location search tool in that module.
However, I could not find the column headings for locations in the marker template downloaded.
Is there any way to upload location informations and use location search tool?

Best,

About mcl 2.0.0

Dear Sir
I'm using mcl ver.2.
However, I could not download template files.
Hence, I uploded the template file using supplementary data of the journal ( https://academic.oup.com/database/article/doi/10.1093/database/bax092/4718480), as shown below, however, I could not find log files.
I also could not find marker type on mainlab_chado_search.
Two warnings were found as shown below.
Is there any way to solve these problems?

*marker_name | marker_type | *genus | *species|
XXXXXXXXXXX |YYYYYYYYYYY|ZZZZZZ|QQQQQ|

Warning: ZipArchive::close(): Invalid or uninitialized Zip object in mcl_download_log() (line 203 of /var/www/html/sites/all/modules/mcl/includes/mcl.inc).
Warning: readfile(/var/www/html/sites/default/files/mcl/user/administrator/1/mcl-1-logs.zip): failed to open stream: No such file or directory in mcl_download_log() (line 208 of /var/www/html/sites/all/modules/mcl/includes/mcl.inc).

sequence->marker_locus or MAIN->marker_locus?

7.x-5.0
Either the following should be added to "templates/mcl_template_marker.class.inc" after line 123
$cvterms['sequence']['marker_locus'] = -1;

or

includes/class/mcl_chado_class/mcl_chado_feature.class.inc
line 1134 should be changed from
$locus = MCL_CHADO_FEATURE::addFeature($mcl_tmpl, $locus_name, $locus_name, $cvterms['sequence']['marker_locus'], $this->getOrganismID());
to
$locus = MCL_CHADO_FEATURE::addFeature($mcl_tmpl, $locus_name, $locus_name, $cvterms['MAIN']['marker_locus'], $this->getOrganismID());

I suspect the latter because the tripal_map materialized view references MAIN->marker_locus

Uploading data for Search Trait Evaluation

Hi,

I'd like to configure the Search Trait Evaluation. However, I do not know which kind of MCL data should I use. I supposed that the data should contains trait value for each sample, but I have viewed the template data formats in MCL Data Template List, and still can't figure out which one (or ones) of the MCL Template was needed for Search Trait Evaluation.

Are there detailed manual or examples on how to configure the Search Trait Evaluation tools?

Any suggestion would be grateful.

Best wishes,

Songtao Gui

jobs silently fail

Hello,
I'm attempting to use your loader. I have created a simple db upload job from the db template file:

screen shot 2018-06-21 at 10 50 27 am

I create a job using the UI and run it using drush mcl-run. It runs with no feedback:

drush mcl-run
    Running uploading job in queue..

    Processing job : db_test [6].

    Processing job : test5 [5].

    DONE.

The job status page is updated to failed (see below).

screen shot 2018-06-21 at 10 51 00 am

Downloading the log file returns a zip file that is 0 bytes and cannot be unzipped:

$ unzip mcl-6-logs.zip
Archive:  mcl-6-logs.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of mcl-6-logs.zip or
        mcl-6-logs.zip.zip, and cannot find mcl-6-logs.zip.ZIP, period.

$ ls -l mcl-6-logs.zip
-rw-r--r--@ 1 chet  staff  0 Jun 21 10:51 mcl-6-logs.zip

to be clear: the db was not loaded:

select * from chado.db where name='mainlab';
drupal=>

Any thoughts on how to proceed?

Thank you

Bradford

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.