Skip to content

mapping maltiple reactions #7

Description

@iwatobipen

Dear Developer,

Is there any option for reaction mapping from list of reaction smiles?
Currently I have file of reaction list and I would like to map many reactions.
Any suggestion and advices are appreciated.
Kind regards,

Taka

Activity

  1. kjelljorner commented on Apr 15, 2020

    @kjelljorner

    @iwatobipen Did you ever find out how to do this? I have the same problem

  2. iwatobipen commented on Apr 25, 2020

    @iwatobipen
    Author

    I wrote shell script to do it. But I took long time to process many reactions. I'm not good at Java so it has room for improvement.
    Thanks.

  3. asad commented on Jun 24, 2020

    @asad
    Owner

    Thanks, scripting is a way to go.
    We are exploring an inbuilt routine.

  4. asad commented on Jun 29, 2020

    @asad
    Owner

    Below is the shell script which can be used in BASH environment on UNIX/LINUX.

    a) Store this in a file.. maybe run_recoder.sh
    b) change the jar file name in JAR variable
    c) RXN_FILE_DIR is the path to RXN files directory
    d) run it in a shell prompt sh run_recoder.sh RXN_FILE_DIR

    #!/bin/bash
    rxn_dir=$1
    job_DIR="OUTPUT"
    mkdir $job_DIR
    for i in rxn_dir/*.rxn
    do
     echo "Preparing job for $i"
     rxn_file = $i
     xbase=${rxn_file##*/}
     xpref=${xbase%.*}
     job_id=xpref
     JAR="ReactionDecoder.jar"
     echo "Processing JobID=$job_id rxn_file=$rxn_file"
     JOB="java -Xmx4G -jar $JAR -c -g -x -f BOTH -j AAM -p $job_id -Q RXN -q $rxn_file"
     echo "Running command $JOB"
     $JOB >> job.log
    done
    
    echo "===DONE=="
    
    
  5. alperyilmaz commented on Dec 1, 2020

    @alperyilmaz

    Hi,
    Here's a way to process many SMILES reactions in parallel.

    parallel --joblog results/runtask.log --colsep ',' -j 10 'java -jar ReactionDecoder.jar -Q SMI -q "{=2 uq() =}" -g-c -j AAM -p results/{1} -f TEXT' :::: rxn_list.csv
    • rxn_list.csv is comma separated file, first column is reaction name or id, second column is the reaction smiles
    • outputs and log are put under results folder, so create it before running the command
    • requires newer version of parallel, (>2019)
    • I chose number of jobs as 10 but due to Java's inability to configure cpu affinity, still uses all cpus
  6. UnixJunkie commented on Mar 2, 2022

    @UnixJunkie

    there should be a -i option: reaction SMILES input file.
    And a -o option: reaction SMILES (mapped) output file

  7. UnixJunkie commented on Mar 18, 2022

    @UnixJunkie

    @iwatobipen you should try this updated version https://github.com/Laboratoire-de-Chemoinformatique/RDTool.
    They have -i and -o.
    It's a little slow though; about 1s per reaction and you need to set a timeout (maybe something like 3s) so
    that mapping some reactions doesn't take 20min...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions