Code Monkey home page Code Monkey logo

Comments (7)

aabest avatar aabest commented on September 4, 2024

An update... For some reason, two nights ago I was able to successfully print the files from the mdl-printcytoseed command from my personal laptop installation (information in the original post above was coming from a different installation).

Yesterday, I performed an ms-update, and now I am unable to use this command on my laptop. The output is exactly as described above... it was working, model existed, nothing changed except the ms-update... I was simply testing to see that I was still able to successfully print the files for cytoseed.

any ideas?

from model-seed-core.

mdejongh avatar mdejongh commented on September 4, 2024

This probably has to do with access rights. Are you logged in to
ModelSEED as the user who loaded the model?

On Mon, Jun 18, 2012 at 4:46 PM, aabest
[email protected]
wrote:

When using the mdl-printcytoseed command, we are not getting correct model information printed to the appropriate cytoseed files.

The program is returning no information or an error in the mdl-printcytoseed subroutine in ModelDriver.pm when calling "get_model_data" and "biomass_reaction_details" in the following code:

       open(FH, ">".$cmdir."/model_data") or ModelSEED::utilities::ERROR("Could not open file: $!\n");
       my $md = $fbaObj->get_model_data({ "id" => [$args->{model}] });
       print FH $dumper->dump($md->{$args->{model}});
       close FH;
       print "Model data printed...\n";
       open(FH, ">".$cmdir."/biomass_reaction_details") or ModelSEED::utilities::ERROR("Could not open file: $!\n");
       print FH $dumper->dump($fbaObj->get_biomass_reaction_data({ "model" => [$args->{model}] }));
       close FH;
       print "Biomass data printed...\n";

Output for model data is:

--- ~

When the biomass is accessed, it returns:


error:
 - iYusMp.906 either nonexistant or nonaccessible

This error is being generated from code in FBAMODEL.pm

Accessing other data in the model appears to work (for instance, compound data, reaction data).

Additionally, accessing the compound data seems to be taking about 20 minutes to process this call:

my $cids = $fbaObj->get_compound_id_list({ "id" => [$args->{model}] });
       open(FH, ">".$cmdir."/compound_details") or ModelSEED::utilities::ERROR("Could not open file: $!\n");
       my $cpds = $fbaObj->get_compound_data({ "id" => $cids->{$args->{model}} });
       print FH $dumper->dump($cpds);
       close FH;
       print "Compound data printed...\n";

Seems like that is very long, especially for a small genome/model.


Reply to this email directly or view it on GitHub:
#163

Matt DeJongh, Ph.D.
Computer Science Department
Hope College, Holland, MI 49423
(616) 395-7429

from model-seed-core.

aabest avatar aabest commented on September 4, 2024

I made the model on my local installation of Model-SEED, gapfilled on specific media, performed a checkgrowth, performed fva, and then printed to cytoseed successfully. Then the next day... it did not work on the same installation. I did not log out or change users during the interim. I did run an ms-update to the latest version of Model-SEED between the trials.

from model-seed-core.

mdejongh avatar mdejongh commented on September 4, 2024

For now, try commenting out as follows (the two lines with +# at the beginning):

+++ b/lib/ModelSEED/FIGMODEL/FIGMODELdatabase.pm
@@ -299,9 +299,9 @@ sub get_objects {
my $finalObjs;
for (my $i=0; $i < @{$objs}; $i++) {
my $rights = $self->get_object_rights($objs->[$i], $type);

  •        if(keys %$rights > 0) {
    
    +# if(keys %$rights > 0) {
    push(@{$finalObjs},
    ModelSEED::FIGMODEL::FIGMODELdata->new($objs->[$i], $self->fig
  •                   }
    
    +# }
    }
    $objs = $finalObjs;
    }

On Mon, Jun 25, 2012 at 11:23 AM, aabest
[email protected]
wrote:

I made the model on my local installation of Model-SEED, gapfilled on specific media, performed a checkgrowth, performed fva, and then printed to cytoseed successfully. Then the next day... it did not work on the same installation. I did not log out or change users during the interim. I did run an ms-update to the latest version of Model-SEED between the trials.


Reply to this email directly or view it on GitHub:
#163 (comment)

Matt DeJongh, Ph.D.
Computer Science Department
Hope College, Holland, MI 49423
(616) 395-7429

from model-seed-core.

aabest avatar aabest commented on September 4, 2024

Okay, this works with the above change. I will change on the other installations, as well.

Is there an underlying issue?

Thanks!

from model-seed-core.

mdejongh avatar mdejongh commented on September 4, 2024

The underlying issue is problem with access rights - I'm hoping that
Chris et al will fix it, but for now the commenting out seems to work.

Are you and your students able to print cytoseed files now?

On Mon, Jun 25, 2012 at 2:48 PM, aabest
[email protected]
wrote:

Okay, this works with the above change. I will change on the other installations, as well.

Is there an underlying issue?

Thanks!


Reply to this email directly or view it on GitHub:
#163 (comment)

Matt DeJongh, Ph.D.
Computer Science Department
Hope College, Holland, MI 49423
(616) 395-7429

from model-seed-core.

aabest avatar aabest commented on September 4, 2024

Yes, we can print the cytoseed files successfully. Thanks for getting a workaround together.

from model-seed-core.

Related Issues (20)

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.