Skip to content

Commit 4d5951b

Browse files
committed
v0.2
1 parent 5921555 commit 4d5951b

12 files changed

+990
-31
lines changed

R/massCalc.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filterFormula <- function (sp) {
22
# Normalize chemical formula for mass estimation
33
if(is.null(stoechFilters))
4-
stop(">>> Need stoechFilters !")
4+
stop(">>> Need stoechFilters in global Env. !")
55
sp1 = sp
66
for(i in 1:nrow(stoechFilters))
77
sp1 = sub(stoechFilters[i,1], stoechFilters[i,2], sp1)

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ UI to manage [MC-ChemDB](https://github.com/ppernot/MC-ChemDB).
66

77
## News
88

9-
* `2022/07/21` First docker version to handle neutral reactions with three main functions:
9+
* `2022/07/21` First docker version (v0.1) to handle neutral reactions with three main functions:
1010

1111
1. Open and edit DB files; create new DB version
1212

1313
2. Parse the DB files to check the consistency (names, masses, mass balance...)
1414

1515
3. Generate MC samples and plot resulting reaction rates as a function of temperature
1616
and density.
17+
18+
* `2022/07/29` v0.2
19+
20+
1. Add ion/molecule reactions (edit/parse, sample). No `Save` feature yet...
1721

1822
## To Be Done...
1923

2024
* Add possibility to Import/Export MC-ChemDB (to and from github ?)
2125

22-
* Manage ion-molecule reactions
23-
2426
* Manage photo-processes
2527

2628

compressDB.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
tar -cvzf ChemDB.tar.gz \
1+
tar --atime-preserve -cvzf ChemDB.tar.gz \
22
../MC-ChemDB/Neutrals/Source/v_1.* \
3-
../MC-ChemDB/Ions/Source/v_1.3/Data/*/data.csv
3+
../MC-ChemDB/Ions/Source/v_1.3/Data/*/data.csv \
4+
../MC-ChemDB/Ions/Tmp/v_1.3/Reactions \
5+
../MC-ChemDB/Doc

docker/Dockerfile

+22-12
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ FROM ppernot1/shiny_base
22

33
RUN apt-get install -y --no-install-recommends libharfbuzz-dev libfribidi-dev
44

5-
## renv
5+
# renv
66
ENV RENV_VERSION 0.15.5
77
RUN Rscript -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
88
RUN Rscript -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
99

1010
RUN mkdir MC-ChemDBUI
11-
COPY .Rprofile /MC-ChemDBUI/
12-
COPY renv/activate.R /MC-ChemDBUI/renv/activate.R
13-
COPY renv.lock /MC-ChemDBUI/renv.lock
1411
WORKDIR /MC-ChemDBUI
12+
COPY .Rprofile .
13+
#ADD renv.tar.gz . # Pb unresolved shared libs...
14+
COPY renv/activate.R ./renv/activate.R
15+
COPY renv.lock ./renv.lock
16+
#WORKDIR /MC-ChemDBUI
1517
RUN R -e 'renv::consent(TRUE)' \
1618
&& R -e 'renv::restore()'
1719

@@ -20,16 +22,24 @@ WORKDIR /
2022
RUN mkdir ChemDBPublic
2123
ADD ChemDB.tar.gz /
2224

23-
## app files
24-
COPY global.R /MC-ChemDBUI/
25-
COPY ui.R /MC-ChemDBUI/
26-
COPY server.R /MC-ChemDBUI/
27-
COPY ui_files /MC-ChemDBUI/ui_files/
28-
COPY server_files /MC-ChemDBUI/server_files/
29-
COPY R /MC-ChemDBUI/R/
30-
COPY data /MC-ChemDBUI/data/
25+
26+
## Sampler files
3127
WORKDIR /MC-ChemDBUI
28+
COPY Sampler ./Sampler/
29+
WORKDIR /MC-ChemDBUI/Sampler/Ranlib/src
30+
RUN ./comp
31+
WORKDIR /MC-ChemDBUI/Sampler
32+
RUN ./compile
3233

34+
## app files
35+
WORKDIR /MC-ChemDBUI
36+
COPY global.R .
37+
COPY ui.R .
38+
COPY server.R .
39+
COPY ui_files ./ui_files/
40+
COPY server_files ./server_files/
41+
COPY R ./R/
42+
COPY data ./data/
3343

3444
## change user from root ### BREAKS renv links !!!
3545
#RUN addgroup --system app \

docker/commands.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
BUILD :
22
1/ cd MC-ChemDBUI
3-
2/ docker build -t ppernot1/mc-chemdbui:v0.1 -t ppernot1/mc-chemdbui:latest -f docker/Dockerfile .
3+
1.a/ source compressDB.sh
4+
2/ docker build -t ppernot1/mc-chemdbui:v0.2 -t ppernot1/mc-chemdbui:latest -f docker/Dockerfile .
45
3/ docker login
56
4/ docker image push --all-tags ppernot1/mc-chemdbui
67

global.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 0.0
1+
version = 0.2
22

33
# Options ####
44
Sys.setlocale(category = "LC_NUMERIC", locale = "C")

renv/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
library/
2+
local/
3+
cellar/
4+
lock/
5+
python/
6+
staging/

0 commit comments

Comments
 (0)