Skip to content

DIANN issue to convert to mzTab when peptides contain X as AA #233

Closed

Description

@ypriverol

Description of the bug

Pipeline completed with errors-
Error executing process > 'NFCORE_QUANTMS:QUANTMS:DIA:DIANNCONVERT (1)'

Caused by:
  Process `NFCORE_QUANTMS:QUANTMS:DIA:DIANNCONVERT (1)` terminated with an error exit status (1)

Command executed:

  diann_version=`cat versions.yml | grep DIA-NN | awk  -F ": " '{print $2}'`
  
  diann_convert.py convert \
      --diann_report "diann_report.tsv" \
      --exp_design "updated_QPLAP_test_metadata.sdrf_openms_design.tsv" \
      --pg_matrix "diann_report.pg_matrix.tsv" \
      --pr_matrix "diann_report.pr_matrix.tsv" \
      --dia_params "0.5;Da;20;ppm;Trypsin;Carbamidomethyl (C);Acetyl (Protein N-term),Oxidation (M)" \
      --diann_version "${diann_version}" \
      --fasta "UP000005640_9606_complete_2020-10-07.fasta" \
      --charge 4 \
      --missed_cleavages 2 \
      --qvalue_threshold 0.01 \
      |& tee convert_report.log
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_QUANTMS:QUANTMS:DIA:DIANNCONVERT":
      pmultiqc: $(multiqc --pmultiqc_version | sed -e "s/pmultiqc, version //g")
  END_VERSIONS

Command exit status:
  1

Command output:
  Traceback (most recent call last):
    File "/hps/nobackup/juan/pride/reanalysis/quantms/bin/diann_convert.py", line 813, in <module>
      cli()
    File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
      return self.main(*args, **kwargs)
    File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
      rv = self.invoke(ctx)
    File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
      return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
      return ctx.invoke(self.callback, **ctx.params)
    File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
      return __callback(*args, **kwargs)
    File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
      return f(get_current_context(), *args, **kwargs)
    File "/hps/nobackup/juan/pride/reanalysis/quantms/bin/diann_convert.py", line 71, in convert
      report["Calculate.Precursor.Mz"] = report.apply(
    File "/usr/local/lib/python3.10/site-packages/pandas/core/frame.py", line 9558, in apply
      return op.apply().__finalize__(self, method="apply")
    File "/usr/local/lib/python3.10/site-packages/pandas/core/apply.py", line 741, in apply
      return self.apply_standard()
    File "/usr/local/lib/python3.10/site-packages/pandas/core/apply.py", line 868, in apply_standard
      results, res_index = self.apply_series_generator()
    File "/usr/local/lib/python3.10/site-packages/pandas/core/apply.py", line 884, in apply_series_generator
      results[i] = self.f(v)
    File "/hps/nobackup/juan/pride/reanalysis/quantms/bin/diann_convert.py", line 72, in <lambda>
      lambda x: AASequence.fromString(x["Stripped.Sequence"]).getMZ(int(x["Precursor.Charge"])), axis=1
    File "pyopenms/pyopenms_4.pyx", line 764, in pyopenms.pyopenms_4.AASequence.getMZ
    File "pyopenms/pyopenms_4.pyx", line 742, in pyopenms.pyopenms_4.AASequence._getMZ_0
  RuntimeError: the value 'XVLSGGTTMYPGIADR' was used but is not valid; Cannot get weight of sequence with unknown AA 'X' with unknown mass.

Command wrapper:
  
      pstat() {
          local x_pid=$1
          local STATUS=$(2> /dev/null < /proc/$1/status egrep 'Vm|ctxt')
  
          if [ $? = 0 ]; then
          local  x_vsz=$(echo "$STATUS" | grep VmSize | awk '{print $2}' || echo -n '0')
          local  x_rss=$(echo "$STATUS" | grep VmRSS | awk '{print $2}' || echo -n '0')
          local x_peak=$(echo "$STATUS" | egrep 'VmPeak|VmHWM' | sed 's/^.*:\s*//' | sed 's/[\sa-zA-Z]*$//' | tr '\n' ' ' || echo -n '0 0')
          local x_pmem=$(awk -v rss=$x_rss -v mem_tot=$mem_tot 'BEGIN {printf "%.0f", rss/mem_tot*100*10}' || echo -n '0')
          local vol_ctxt=$(echo "$STATUS" | grep '\bvoluntary_ctxt_switches' | awk '{print $2}' || echo -n '0')
          local inv_ctxt=$(echo "$STATUS" | grep '\bnonvoluntary_ctxt_switches' | awk '{print $2}' || echo -n '0')
          cpu_stat[x_pid]="$x_pid $x_pmem $x_vsz $x_rss $x_peak $vol_ctxt $inv_ctxt"
          fi
      }
  
      pwalk() {
          pstat $1
          for i in ${ALL_CHILDREN[$1]:=}; do pwalk $i; done
      }
  
      pwalk $1
  }
  
  nxf_stat() {
      cpu_stat=()
      nxf_tree $1
  
      declare -a sum=(0 0 0 0 0 0 0 0)
  
  (... more ...)
  ------------------------------------------------------------
  
  Exited with exit code 1.
  
  Resource usage summary:
  
      CPU time :                                   24.00 sec.
      Max Memory :                                 1070 MB
      Average Memory :                             531.80 MB
      Total Requested Memory :                     12288.00 MB
      Delta Memory :                               11218.00 MB
      Max Swap :                                   -
      Max Processes :                              15
      Max Threads :                                118
      Run time :                                   60 sec.
      Turnaround time :                            46 sec.
  
  The output (if any) is above this job summary.

Work dir:
  /hps/nobackup/juan/pride/reanalysis/dia-projects/francesca/work/c1/1cd7bd5675f011bb242dbc67f3bbfb

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

Command used and terminal output

No response

Relevant files

No response

System information

No response

Activity

  1. added
    bug
    on Oct 20, 2022
  2. linked a pull request that will close this issuefixed bugs #234on Oct 20, 2022
  3. vdemichev commented on Oct 21, 2022

    @vdemichev

    If the error can be reproduced with DIA-NN GUI under Windows, I can take a look & fix.

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