bioRxiv Science⌕ Search

bioRxiv · 10.1101/110494

GCalignR: An R package for aligning Gas-Chromatography data

Abstract

Chemical cues are arguably the most fundamental means of animal communication and play an important role in mate choice and kin recognition. Consequently, gas chromatography (GC) in combination with either mass spectrometry (MS) or flame ionisation detection (FID) are commonly used to characterise complex chemical samples. Both GC-FID and GC-MS generate chromatograms comprising peaks that are separated according to their retention times and which represent different substances. Across chromatograms of different samples, homologous substances are expected to elute at similar retention times. However, random and often unavoidable experimental variation introduces noise, making the alignment of homologous peaks challenging, particularly with GC-FID data where mass spectral data are lacking. Here we present GCalignR, a user-friendly R package for aligning GC-FID data based on retention times. The package also implements dynamic visualisations to facilitate inspection and fine-tuning of the resulting alignments, and can be integrated within a broader workflow in R to facilitate downstream multivariate analyses. We demonstrate an example workflow using empirical data from Antarctic fur seals and explore the impact of user-defined parameter values by calculating alignment error rates for multiple datasets. The resulting alignments had low error rates for most of the explored parameter space and we could also show that GCalignR performed equally well or better than other available software. We hope that GCalignR will help to simplify the processing of chemical datasets and improve the standardization and reproducibility of chemical analyses in studies of animal chemical communication and related fields.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ottensmann, M., Stoffel, M. A., Hoffman, J. I.. 2017-02-22. GCalignR: An R package for aligning Gas-Chromatography data. https://doi.org/10.1101/110494

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Development of the Highly Sensitive Horse questionnaire to assess horses' sensory processing sensitivity

It is well established that individuals vary in how they respond to situations, but might they also perceive their environment differently? Sensory Processing Sensitivity (SPS) is a multidimensional trait describing individual variation in the perception and response to sensory, emotional, and social stimuli. While extensively studied in humans, its presence in animals remains underexplored. We investigated whether horses might exhibit a comparable trait and developed the Highly Sensitive Horse questionnaire to assess equine SPS. A 104-item questionnaire was developed and refined using data from an online survey of 121 horses. The remaining 45 items were evaluated in an independent survey of 561 horses. Exploratory and confirmatory factor analyses identified a robust two-factor, 12-item structure reflecting dimensions similar to the human SPS dimensions of: Overstimulation, describing a tendency to become overwhelmed by intense or prolonged stimuli, and Sensitivity to subtleties, describing heightened perception of subtle environmental changes. The scale showed high internal consistency, excellent intra-rater and moderate inter-rater reliability. Although eSPS was associated with established behavioural traits, including fearfulness, it also explained unique behavioural variation beyond these traits. These findings suggest that horses differ in how they perceive their environment, providing a foundation to better understand equine behaviour, and opening new avenues for comparative sensory-processing research.

animal behavior and cognition↗

Behavioral divergence across replicated predation regimes is species-specific in two sympatric poeciliid fishes

Predation is a potent driver of behavioral divergence across prey populations, yet whether shared predation regimes generate similar responses in coexisting prey species remains unclear. Species differences in reproductive and foraging traits may alter vulnerability to predators, generating species-specific responses. We compared behavior and cognition of two poeciliid fishes (Gambusia affinis and Poecilia latipinna) that differ in body size, the presence of male ornamentation, and mating tactics. We sampled both species across replicate high- and low-predation regimes and measured exploration, shyness, boldness, social motivation, and detour solve latency (N = 509). Multivariate behavior and cognition differed between predation regimes, and the magnitude of divergence varied with species but not body size. Consistent with the multivariate pattern, the more conspicuous P. latipinna exhibited higher boldness and overall lower exploration under high-predation, while high- and low-predation populations of G. affinis did not differ. These findings suggest either that the more conspicuous species experiences greater predation risk or that the less conspicuous species reduces its predation risk through alternative phenotypic responses. More broadly, species differences in reproductive phenotypes associated with sexual selection may help explain why shared predation regimes generate variable patterns of behavioral divergence across taxa.

animal behavior and cognition↗

Capturing the rhythm: methodological choices shape inference from circadian activity data

Abstract 1. Statistical tools and analytical decisions for analysing animal activity data are often limited and poorly justified, particularly with respect to model choice, sampling design and temporal aggregation. These shortcomings can constrain our ability to draw accurate and biologically meaningful inferences about behaviour. 2. We interrogated 24 h activity data taken from individual males and females derived from five Drosophila melanogaster populations to generate a general framework for collecting and analysing activity data that systematically compares common model classes, continuous verses fragmented sampling strategies, and alternative temporal aggregation choices (time-bin sizes). 3. Our analyses identified generalised additive mixed models (GAMMs) applied to high-frequency continuous data with small-moderate bin sizes (1-5 minutes) as providing the most robust and interpretable inference for our complex, high-frequency activity data. 4. However, our interrogation of the data set confirmed that analytical and sampling decisions need to be tailored to the study species, the timing of activities and the nature of the behaviour of interest. Accordingly, polynomial and cosinor generalised linear models, increased but biologically targeted snapshot sampling, and bin sizes smaller than one hour yielded adequate analyses with similar biological conclusions when appropriately matched to the system. 5. Our approach provides an accessible decision-making framework for activity analyses that allows researchers across behavioural, ecological and evolutionary studies to justify and optimise choices about data collection and modelling. Such an approach improves the biological relevance of inference and supporting the use of modern tracking and analytical technologies.

animal behavior and cognition↗