Skip to content

Commit

Permalink
Update to release version 6.2 (#25)
Browse files Browse the repository at this point in the history
* "-p" now plots only the highest peak of an isotope pattern

* fixed formatting

* added stable isotopes for elements up to Bismuth

* upgraded mctc-lib to pass test suite

* deleted subprojects wrap because of compiler errors

* update to version 6.2.0
  • Loading branch information
gorges97 authored Sep 26, 2023
1 parent 237bfd1 commit b469570
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions src/main.F90
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ program plotms
call readl(arg,xx,nn)
total_charge = real(xx(1),wp)

! print version of program
case("--version")
call print_version
stop

! print help
case("-h","--help")
call print_help

case default
error stop ' -- Unrecognized Keyword -- '
Expand Down Expand Up @@ -1331,6 +1339,32 @@ subroutine calcfr(pp,pair,sum4)
end subroutine calcfr


subroutine print_help()
implicit none

write(*,*)
write(*,'(1x, ''usage :'')')
write(*,'(1x, ''plotms [options]'')')
write(*,*)
write(*,'(1x, ''plotms needs a qcxms.res qcxms_cid.res tmpqcxms.res or tmpqcxms_cid.res file from a qcxms calculation in the current directory.'')')
write(*,*)
write(*,'(/,1x,''command line arguments'')')
write(*,'(5x,''-a: count charges from -1000 (cthr) to cthr2'')')
write(*,'(5x,''-v: print spectra "mass % intensity counts Int. exptl" to stdout;'')')
write(*,'(5x,'' with "Int. exptl" (experimental) taken from exp.dat but not all'')')
write(*,'(5x,'' exp peaks are exported if no theoretical counterpart exists'')')
write(*,'(5x,''-f <name_of_res_file>: give name of res file'')')
write(*,'(5x,''-t: couting ions with charge x to y (give the value, e.g. "-t 1 2" for charge 1 to 2)'')')
write(*,'(5x,''-w [real]: broadening the charges by an SD '')')
write(*,'(5x,''-s: Take only secondary and tertiary fragmentations (give the value, e.g. "-s 2" for secondary)'')')
write(*,'(5x,''-m [int] set minimum value for m/z, so 100% value will be calc. for higher values (CID)'')')
write(*,'(5x,''-p calculate NO isotope pattern, highest peak of isotope pattern is used'')')
write(*,'(5x,''-i [real]: set minimum intensity that is considered in rel. intensity percent'')')
write(*,'(5x,''-e: provide exp. input file (in .csv format)'')')
write(*,'(5x,''--version: print version of this program'')')
stop ' [-h] displayed. exit.'
end subroutine print_help

! Get the absolute path to file
! Note, this function replaces shell tilde ~/ with the explicit home dir string.
function fullpath(fname)
Expand Down
6 changes: 3 additions & 3 deletions src/version.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ subroutine print_version
write(*,'(6x,''* P l o t M S *'')')
write(*,'(6x,''* * * * * * * * * * * * * * * * * *'')')
write(*,'(6x,''* QCxMS spectra plotting tool *'')')
write(*,'(6x,''* - v. 6.1.0 - *'')')
write(*,'(6x,''* 25. Jul 2022 *'')')
write(*,'(6x,''* - v. 6.2.0 - *'')')
write(*,'(6x,''* 26. Sep 2023 *'')')
write(*,'(6x,''* * * * *'')')
write(*,'(6x,''* S. Grimme *'')')
write(*,'(6x,''* J. Koopman *'')')
write(*,'(6x,''* * * * * * * * * * * * * * * * * *'')')
write(*,'(6x,'' Contributor: C.Bauer, T.Kind '')')
write(*,'(6x,'' Contributor: C.Bauer, J. Gorges, T.Kind '')')
write(*,*)

end subroutine print_version
Expand Down

0 comments on commit b469570

Please sign in to comment.