DOI: 10.5061/dryad.tqjq2bw6t
title: Data from: Sexual conflict and social networks in bed bugs: Effects of social experience

description: Living in groups can provide essential experience that improves sexual
 performance and reproductive success. While the effects of social
 experience have drawn considerable scientific interest, commonly used
 behavioural assays often do not capture the dynamic nature of interactions
 within a social group. Here, we conducted three experiments using a social
 network framework to test whether social experience during early adulthood
 improves the sexual competence of bed bugs (Cimex lectularius) when placed
 in a complex and competitive group environment. In each experiment, we
 observed replicate groups of bed bugs comprising previously socialized and
 previously isolated individuals of the same sex, along with an equal
 number of standardized individuals of the opposite sex. Regardless of
 whether we controlled for their insemination history, previously isolated
 males mounted and inseminated females at significantly higher rates than
 previously socialized males. However, we found no evidence of social
 experience influencing our other measures of sexual competence: proportion
 of mounts directed at females, ability to overcome female resistance, and
 strength of opposite-sex social associations. We similarly did not detect
 effects of social experience on our female sexual competence metrics:
 propensity to avoid mounts, rate of successfully avoiding mounts,
 opposite-sex social association strength, and rate of receiving
 inseminations. Our findings indicate that early social experience does not
 improve sexual competence in male and female bed bugs.
description: Sexual interactions and outcome data for each replicate within
 each of the three experiments was collected through live continous
 observations of individually marked bed bugs. In addition to continous
 live observations of sexual interactions, we also examined bed bugs’
 social associations by performing scans where we documented the location
 of each bed bug. The list of aggregating individuals was translated into
 association matrices to generate opposite-sex social networks.
description: # Data from: Sexual conflict and social networks in bed bugs: Effects of
 social experience ## Experiment 1 The code used to analyze and visualize
 the major figures and results can be found in the
 "exp_1_main_analyses.R" file. The data used for this file is
 "exp_1_combined_individual_data.csv". Each column in this file
 includes data for a single individual from a single replicate. **Below are
 definitions of variables that may not be self-explanatory:**  **ID:**
 Unique ID given to a specific male **male_mounts:** Number of mounts
 directed at other males **female_mounts:** Number of mounts directed at
 females  **mounts_evaded:** Number of mounts performed where females
 successfully avoided **attempt_avoid:** Number of mounts performed where
 females attempted to avoid **mounts_aborted:** Number of female mounts
 that the male aborted **mounts_choice:** Number of female mounts where
 males had the opportunity to abort **abort_rate:** Proportion of mounts
 aborted where males had the choice to abort **avoid_success_rate:** Number
 of mounts females successfully avoided divided by number of mounts females
 attempted to avoid **prop_male:** Proportion of mounts directed at other
 males instead of females **oppo_sex_strength:** Opposite sex social
 network association strength (obtained from social network analyses) All
 the other exp_1 files are for the opposite-sex network analysis. The raw
 data is in the form of a list of all individuals participating in every
 aggregation identified during hourly scans in a file called
 "exp_1_raw_aggreations.csv". The individuals in each aggregation
 are listed in the "Members" column where each letter ID
 represents an individual bed bug. We converted number IDs to letter IDs
 because csv files do not handle the . and : symbols well. The R script
 named "exp_1_network_analysis.R" converts this list of
 aggregations into association matrices which are all also uploaded here.
 We then removed all same-sex association values from these association
 matrices so that they could be converted into opposite-sex networks
 (social association networks that only depict opposite sex associations).
 These matrix files have a blank cell in the first row/column because
 that's the default structure of association matrices. The
 "exp_1_oppo_sex_network_analysis.R" file generates opposite sex
 social networks while the "exp_1_permutation_test.R" file
 contains code used to run the node-based permutation test for this
 experiment. In general, it may be necessary to add "exp_1" to
 the names of csv files to get the R scripts to run properly as file names
 were modified after analysis, prior to uploading for ease of navigation on
 DRYAD.  ## Experiments 2 and 3 Follow the same instructions as for
 Experiment 1 except replace exp_1 with exp_2/3. Some file names are
 slightly different (for example, the R scripts with the majority of the
 relevant analyses are named "exp_2_all_male_analysis.R" and
 "exp_3_all_fem_analysis.R"). Lastly, like exp_1 again, file
 names may have to be changed slightly in the read.csv step of the R
 script, usually by adding "exp_x" in front of the file name to
 get things to run.  **exp_2_male_summary_data.csv variable definitions
 (data file for main analyses in Experiment 2):**  **male_mounts:** Number
 of mounts directed at other males **female_mounts:** Number of mounts
 directed at females **attempt_avoid:** Number of mounts performed where
 females attempted to avoid **success_avoid:** Number of mounts performed
 where females successfully avoided **aborts:** Number of mounts directed
 at females aborted by males **possible_aborts:** Number of mounts directed
 at females where males had the choice to abort
 **exp_3_female_summary_data.csv variable definitions (data file for main
 analyses in Experiment 3):**  **inseminations:** Number of times a focal
 female was inseminated **mounts:** Number of times a focal female was
 mounted **attempt_avoid:** Number of mounts a female attempted to avoid
 **success_avoid:** Number of mounts a female successfully avoided
 **prop_avoid:** Proportion of total mounts a female successfully avoided
 **avoid_success:** Proportion of mounts females attempted to avoid where
 she successfully avoided **oppo_sex_strength:** Opposite sex social
 network association strength (obtained from social network analyses)
 Missing data code: NA