Skip to content

First run of SAGE #278

Closed
Closed

Description

@ypriverol

Description of the bug

Caused by:
  No signature of method: java.lang.String.negative() is applicable for argument types: () values: []
Possible solutions: notify(), normalize(), next()

Source block:
  def meta             = metas[0]
  meta_order_files     = metas.collect{ it.mzml_id.toString() + "*_sage.idXML" }
  def args             = task.ext.args ?: ''
  enzyme               = meta.enzyme
  outname              = mzml_files.size() > 1 ? "out_${batch}" : mzml_files[0].baseName
  il_equiv = params.IL_equivalent ? "-PeptideIndexing:IL_equivalent" : ""
  """
      SageAdapter \\
          -in ${mzml_files} \\
          -out ${outname}_sage.idXML \\
          -threads $task.cpus \\
          -database "${database}" \\
          -decoy_prefix $params.decoy_string \\
          -min_len $params.min_peptide_length \\
          -max_len $params.max_peptide_length \\
          -min_matched_peaks 1 \\
          -min_peaks 1 \\
          -max_peaks 500 \\
          -missed_cleavages $params.allowed_missed_cleavages \\
          -report_psms $params.num_hits \\
          -enzyme "${enzyme}" \\
          -precursor_tol_left ${-meta.precursormasstolerance} \\
          -precursor_tol_right ${meta.precursormasstolerance} \\
          -precursor_tol_unit $meta.precursormasstoleranceunit \\
          -fragment_tol_left ${-meta.fragmentmasstolerance} \\
          -fragment_tol_right ${meta.fragmentmasstolerance} \\
          -fragment_tol_unit $meta.fragmentmasstoleranceunit \\
          -fixed_modifications ${meta.fixedmodifications.tokenize(',').collect{ "'${it}'" }.join(" ") } \\
          -variable_modifications ${meta.variablemodifications.tokenize(',').collect{ "'${it}'" }.join(" ") } \\
          -max_variable_mods $params.max_mods \\
          -isotope_error_range $params.isotope_error_range \\
          ${il_equiv} \\
          -PeptideIndexing:unmatched_action ${params.unmatched_action} \\
          -debug $params.db_debug \\
          $args \\
          2>&1 | tee ${outname}_sage.log
  
      if [[ ${mzml_files.size()} -ge 2 ]]; then
          IDRipper -in ${outname}_sage.idXML -out . -split_ident_runs
          rm ${outname}_sage.idXML
          for f in *.idXML
          do
              mv "\$f" "\${f%.*}_sage.idXML"
          done
      fi
  
      cat <<-END_VERSIONS > versions.yml
      "${task.process}":
          SageAdapter: \$(SageAdapter 2>&1 | grep -E '^Version(.*)' | sed 's/Version: //g' | cut -d ' ' -f 1)
          sage: \$(sage 2>&1 | grep -E 'Version [0-9]+\\.[0-9]+\\.[0-9]+')
      END_VERSIONS
      """

Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`

 -- Check '.nextflow.log' file for details

Command used and terminal output

#!/bin/bash
for a in  PXD010154.sdrf.tsv 
do 
nextflow run /hps/nobackup/juan/pride/reanalysis/quantms/main.nf -c /hps/nobackup/juan/pride/reanalysis/quantms/nextflow.config -profile ebislurm --in
put $a --search_engines 'sage' --root_folder /hps/nobackup/juan/pride/reanalysis/absolute-expression/tissues/ --local_input_type mzML --outdir ${a%.sd
rf.tsv}-sage --database /hps/nobackup/juan/pride/reanalysis/multiomics-configs/databases/Homo-sapiens-uniprot-reviewed-contaminants-decoy-202210.fasta
 --targeted_only false --protein_quant shared_peptides --add_triqler_output --skip_post_msstats --enable_pmultiqc false -resume
done

Relevant files

No response

System information

No response

Activity

  1. added
    bug
    on Sep 6, 2023
  2. jpfeuffer commented on Sep 6, 2023

    @jpfeuffer
    Collaborator

    Probably the SDRFs parsing code does not correctly convert the tolerances to integers

  3. added a commit that references this issue on Sep 7, 2023
  4. linked a pull request that will close this issueFixing multiple bugs of sage quantms #279on Sep 7, 2023
  5. ypriverol commented on Sep 7, 2023

    @ypriverol
    ContributorAuthor

    This should be modfiy in create_input_channel.nf @jpfeuffer

  6. jpfeuffer commented on Sep 7, 2023

    @jpfeuffer
    Collaborator

    Yes I think it would be better. In the SDRF case only.
    When set as a parameter, it is automatically a double already.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions