Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Nov 16, 2024
1 parent 699a019 commit 99c0de9
Show file tree
Hide file tree
Showing 44 changed files with 683 additions and 131 deletions.
44 changes: 22 additions & 22 deletions specs/R-CRAN-CFO.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname CFO
%global packver 2.1.0
%global packver 2.2.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2.1.0
Version: 2.2.0
Release: 1%{?dist}%{?buildtag}
Summary: CFO-Type Designs in Phase I/II Clinical Trials

Expand Down Expand Up @@ -41,26 +41,26 @@ with the aim of identifying the optimal biological dose (OBD). The 'CFO'
package facilitates the implementation of dose-finding trials by utilizing
calibration-free odds type (CFO-type) designs. Specifically, it
encompasses the calibration-free odds (CFO) (Jin and Yin (2022)
<doi:10.1177/09622802221079353>), randomized CFO (rCFO), two-dimensional
CFO (2dCFO) (Wang et al. (2023) <doi:10.3389/fonc.2023.1294258>),
time-to-event CFO (TITE-CFO) (Jin and Yin (2023) <doi:10.1002/pst.2304>),
fractional CFO (fCFO), accumulative CFO (aCFO), TITE-aCFO, and f-aCFO
designs (Fang and Yin (2024) <doi: 10.1002/sim.10127>). It supports phase
I/II trials for the CFO design and only phase I trials for the other
CFO-type designs. The ‘CFO' package accommodates diverse CFO-type designs,
allowing users to tailor the approach based on factors such as dose
information inclusion, handling of late-onset toxicity, and the nature of
the target drug (single-drug or drug-combination). The functionalities
embedded in 'CFO' package include the determination of the dose level for
the next cohort, the selection of the MTD for a real trial, and the
execution of single or multiple simulations to obtain operating
characteristics. Moreover, these functions are equipped with early
stopping and dose elimination rules to address safety considerations.
Users have the flexibility to choose different distributions, thresholds,
and cohort sizes among others for their specific needs. The output of the
'CFO' package can be summary statistics as well as various plots for
better visualization. An interactive web application for CFO is available
at the provided URL.
<doi:10.1177/09622802221079353>), randomized CFO (rCFO), precision CFO
(pCFO), two-dimensional CFO (2dCFO) (Wang et al. (2023)
<doi:10.3389/fonc.2023.1294258>), time-to-event CFO (TITE-CFO) (Jin and
Yin (2023) <doi:10.1002/pst.2304>), fractional CFO (fCFO), accumulative
CFO (aCFO), TITE-aCFO, and f-aCFO (Fang and Yin (2024) <doi:
10.1002/sim.10127>). It supports phase I/II trials for the CFO design and
only phase I trials for the other CFO-type designs. The ‘CFO' package
accommodates diverse CFO-type designs, allowing users to tailor the
approach based on factors such as dose information inclusion, handling of
late-onset toxicity, and the nature of the target drug (single-drug or
drug-combination). The functionalities embedded in 'CFO' package include
the determination of the dose level for the next cohort, the selection of
the MTD for a real trial, and the execution of single or multiple
simulations to obtain operating characteristics. Moreover, these functions
are equipped with early stopping and dose elimination rules to address
safety considerations. Users have the flexibility to choose different
distributions, thresholds, and cohort sizes among others for their
specific needs. The output of the 'CFO' package can be summary statistics
as well as various plots for better visualization. An interactive web
application for CFO is available at the provided URL.

%prep
%setup -q -c -n %{packname}
Expand Down
12 changes: 4 additions & 8 deletions specs/R-CRAN-CohortSymmetry.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname CohortSymmetry
%global packver 0.1.3
%global packver 0.1.4
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.3
Version: 0.1.4
Release: 1%{?dist}%{?buildtag}
Summary: Sequence Symmetry Analysis Using the Observational Medical Outcomes Partnership Common Data Model

Expand All @@ -20,12 +20,10 @@ BuildArch: noarch
BuildRequires: R-CRAN-CodelistGenerator >= 3.1.0
BuildRequires: R-CRAN-CDMConnector >= 1.3.0
BuildRequires: R-CRAN-DrugUtilisation >= 0.7.0
BuildRequires: R-CRAN-omock >= 0.3.1
BuildRequires: R-CRAN-visOmopResults >= 0.3.0
BuildRequires: R-CRAN-omopgenerics >= 0.2.1
BuildRequires: R-CRAN-omock >= 0.2.0
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-ggplot2
BuildRequires: R-CRAN-magrittr
BuildRequires: R-CRAN-PatientProfiles
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-stringr
Expand All @@ -39,12 +37,10 @@ BuildRequires: R-CRAN-gt
Requires: R-CRAN-CodelistGenerator >= 3.1.0
Requires: R-CRAN-CDMConnector >= 1.3.0
Requires: R-CRAN-DrugUtilisation >= 0.7.0
Requires: R-CRAN-omock >= 0.3.1
Requires: R-CRAN-visOmopResults >= 0.3.0
Requires: R-CRAN-omopgenerics >= 0.2.1
Requires: R-CRAN-omock >= 0.2.0
Requires: R-CRAN-dplyr
Requires: R-CRAN-ggplot2
Requires: R-CRAN-magrittr
Requires: R-CRAN-PatientProfiles
Requires: R-CRAN-rlang
Requires: R-CRAN-stringr
Expand Down
77 changes: 77 additions & 0 deletions specs/R-CRAN-GeoTox.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname GeoTox
%global packver 0.2.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.2.0
Release: 1%{?dist}%{?buildtag}
Summary: Spatiotemporal Mixture Risk Assessment

License: MIT + file LICENSE
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 4.4.0
Requires: R-core >= 4.4.0
BuildArch: noarch
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-ggplot2
BuildRequires: R-CRAN-ggridges
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-sf
BuildRequires: R-stats
BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-tibble
BuildRequires: R-CRAN-tidyr
BuildRequires: R-CRAN-tidyselect
BuildRequires: R-CRAN-truncnorm
BuildRequires: R-utils
Requires: R-CRAN-dplyr
Requires: R-CRAN-ggplot2
Requires: R-CRAN-ggridges
Requires: R-CRAN-rlang
Requires: R-CRAN-sf
Requires: R-stats
Requires: R-CRAN-stringr
Requires: R-CRAN-tibble
Requires: R-CRAN-tidyr
Requires: R-CRAN-tidyselect
Requires: R-CRAN-truncnorm
Requires: R-utils

%description
Connecting spatiotemporal exposure to individual and population-level risk
via source-to-outcome continuum modeling. The package, methods, and
case-studies are described in Messier, Reif, and Marvel (2024)
<doi:10.1101/2024.09.23.24314096> and Eccles et al. (2023)
<doi:10.1016/j.scitotenv.2022.158905>.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
61 changes: 61 additions & 0 deletions specs/R-CRAN-HMMRel.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname HMMRel
%global packver 0.1.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.0
Release: 1%{?dist}%{?buildtag}
Summary: Hidden Markov Models for Reliability and Maintenance

License: GPL-2
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 3.5.0
Requires: R-core >= 3.5.0
BuildArch: noarch

%description
Reliability Analysis and Maintenance Optimization using Hidden Markov
Models (HMM). The use of HMMs to model the state of a system which is not
directly observable and instead certain indicators (signals) of the true
situation are provided via a control system. A hidden model can provide
key information about the system dependability, such as the reliability of
the system and related measures. An estimation procedure is implemented
based on the Baum-Welch algorithm. Classical structures such as K-out-of-N
systems and Shock models are illustrated. Finally, the maintenance of the
system is considered in the HMM context and two functions for new
preventive maintenance strategies are considered. Maintenance efficiency
is measured in terms of expected cost. Maintenance efficiency is measured
in terms of expected cost. Methods are described in Gamiz, Limnios, and
Segovia-Garcia (2023) <doi:10.1016/j.ejor.2022.05.006>.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-LBI.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname LBI
%global packver 0.2.0
%global packver 0.2.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.2.0
Version: 0.2.1
Release: 1%{?dist}%{?buildtag}
Summary: Likelihood Based Inference

Expand Down
67 changes: 67 additions & 0 deletions specs/R-CRAN-OPTeCD.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname OPTeCD
%global packver 1.0.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.0
Release: 1%{?dist}%{?buildtag}
Summary: Optimal Partial Tetra-Allele Cross Designs

License: GPL (>= 2)
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel
Requires: R-core
BuildArch: noarch

%description
Tetra-allele cross often referred as four-way cross or double cross or
four-line cross are those type of mating designs in which every cross is
obtained by mating amongst four inbred lines. A tetra-allele cross can be
obtained by crossing the resultant of two unrelated diallel crosses. A
common triallel cross involving four inbred lines A, B, C and D can be
symbolically represented as (A X B) X (C X D) or (A, B, C, D) or (A B C D)
etc. Tetra-allele cross can be broadly categorized as Complete
Tetra-allele Cross (CTaC) and Partial Tetra-allele Crosses (PTaC).
Rawlings and Cockerham (1962)<doi:10.2307/2527461> firstly introduced and
gave the method of analysis for tetra-allele cross hybrids using the
analysis method of single cross hybrids under the assumption of no
linkage. The set of all possible four-way mating between several genotypes
(individuals, clones, homozygous lines, etc.) leads to a CTaC. If there
are N number of inbred lines involved in a CTaC, the the total number of
crosses, T = N*(N-1)*(N-2)*(N-3)/8. When more number of lines are to be
considered, the total number of crosses in CTaC also increases. Thus, it
is almost impossible for the investigator to carry out the experimentation
with limited available resource material. This situation lies in taking a
fraction of CTaC with certain underlying properties, known as PTaC.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-Rdpack.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname Rdpack
%global packver 2.6.1
%global packver 2.6.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2.6.1
Version: 2.6.2
Release: 1%{?dist}%{?buildtag}
Summary: Update and Manipulate Rd Documentation Objects

Expand Down
Loading

0 comments on commit 99c0de9

Please sign in to comment.