A short script to use the nontarget pattern.match function to print useful information about clusters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
984 B

  1. # Patternmatch
  2. This is a short R pattern.search wrapper that takes in a CSV file containing
  3. HRMS Peaks and prints all of the fragment numbers that may contain isotopes of one's
  4. choosing (preferably halogenated compounds).
  5. ## Installation
  6. The script has the following dependencies:
  7. - latest version of the [Nontarget R Package](https://github.com/blosloos/nontarget)
  8. (This should be installed
  9. through the devtools package)
  10. - [purrr](https://www.rdocumentation.org/packages/purrr/versions/0.2.5)
  11. - [enviPat](https://rdocumentation.org/packages/enviPat/versions/2.2)
  12. - [stringr](https://www.rdocumentation.org/packages/stringr/versions/1.4.0)
  13. - [parallel](https://www.rdocumentation.org/packages/parallel/versions/3.6.2)
  14. Before running/configuring the script, call `make` while in the `/src`
  15. directory or copy `script.def.R` to `script.R`.
  16. ## Additional Notes
  17. In order to make the search run in linear time, as of right now, the entire
  18. data table will be sorted before searching.