Giter VIP home page Giter VIP logo

geochem's Introduction

geochem

R-CMD-check Project Status: Active - The project has reached a stable, usable state and is being actively developed. License: GPLv3 giovannellilab

Geochemistry pipeline for processing and visualising data from IRMS, IC and ICP-MS.


Installation

Installation of the package and its dependencies can be done either using a conda environment or directly in R.

Option 1: Install using R

devtools::install_github("giovannellilab/geochem", dependencies=TRUE, build_vignettes=TRUE)

Option 2: Install using a conda environment

Creating a conda environment simplifies having different R and packages versions. It is strongly recommended to create an environment and install all required packages in there.

conda create -n geochem -y

# NOTE: for Macs with M1/M2 chips
CONDA_SUBDIR=osx-64 conda create -n geochem -y

Installation of dependencies:

conda activate geochem
conda install r-base r-essentials r-ggtern r-rio r-devtools r-svglite -y

IMPORTANT: if you use RStudio you need to launch it from the terminal with the activated conda environment:

conda activate geochem
rstudio

Installation of the geochem package can then be done by running the following code in R:

devtools::install_github("giovannellilab/geochem", build_vignettes=TRUE)

Usage

For a detailed pipeline, please refer to the geochem vignette. You can display it after installation via:

vignette("geochem")

Processing ICP-MS data

Refer to the ICP-MS section in the geochem vignette, in which the process is detailed.

geochem's People

Contributors

guillecg avatar alebastianoni avatar davidecrs avatar

Watchers

Donato Giovannelli avatar  avatar

geochem's Issues

Fix behaviour of process_icp_data function

  • Fix sample name: avoid dilutions in it and information about replicates (those should be in other columns)
  • Remove filling in the SD with RSD values (assume we will have replicates and they will have exactly the same sample name)
  • Remove RSD rows since we are not using them
  • Remove CPS checks since we are not checking them

Customization of LL plot

  • Adding an option to increase the size of the points
  • Adding the code outside the function to customize coloring the points by a set of variables

Fix metals plot

  • Add the parameter to use log or percentage
  • Remove [ppb] from axis
  • Add absolute stacked bar plot on top of this one (check geom_col)
  • Set blank as the first sample

Custom Piper Plot

  • Create piper plot from scratch without using the SMWR package
  • Define/customize the color palette for the piper plot

Remove elements from ICP-MS raw data

Remove the following metals from the list:
Li [He] and Li [No Gas]
Na [ No Gas ]
Mg [ No Gas ] and Mg [ He ]
P [ No Gas ]
S [ No Gas ]
K [ No Gas ] and K [ He ]
Ca [ He ] and Ca [ No Gas ] and
Si [ No Gas ]

Change the color palette

"#2E83AD",
"#66C2A5",
"#ABD9E9",
"#E6F598",
"#FFFFBF",
"#FEE08B",
"#FDAE61",
"#F46D43",
"#D53E4F", --> Co
"#9E0142",
"#8E0152",
"#C51B7D", --> Cu
"#DE77AE",
"#F1B6DA",
"#FDE0EF",
"#e08214", --> Fe
"#F7F7F7",
"#D9F0D3",
"#A6DBA0",
"#5AAE61",
"#1B7837", --> Mn
"#00441B", -->Mo
"#4D9221",
"#7CB85C", --> Ni
"#A6D96A",
"#D9EF8B",
"#FFFFCC",
"#FDAE61",
"#F46D43", --> Se
"#D73027",
"#A50026",
"#67001F",
"#EF8A62",
"#F7F7F7",
"#67A9CF",
"#D0E1F0",
"#FFFFB3",
"#F0F0F0",
"#B3DE69", --> V
"#8DD3C7",--> W
"#80B1D3",
"#5E4FA2",
"#BEBADA",
"#FDB462",--> Zn
"#FB8072"

Add checks for sample selection

  • Check whether both dilutions fall within the calibration curve (concentration / dilution)
  • If so, check which dilution has the lowest RSD
  • If both RSD are low, report the mean

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.