-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
683 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.