OSCR

Transposons contribute to splice-isoform diversity in the <i>Drosophila</i> brain.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 2 matches
  1. [1] § Materials and methods › Primer design for RT-PCR ↔ TEChim_PART2_forSLURM_0.8.2.sh, lines 274 to 349 · score 0.58 · exon intron junction, predicted junction, fragment, splicing, gene · block oscr:b:K6DQHQ5F1FFWE-6 · Report a mismatch
  2. [2] § Materials and methods › Primer design for RT-PCR ↔ TEChim_PART2_gDNA_forSLURM_0.1.0.sh, lines 179 to 204 · score 0.56 · acceptor site, gDNA, mRNA, intron, matched, downstream · block oscr:b:DNBCY9RM14YEK-6 · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Shell · 372 lines · 17 KB · MIT · 1 match

  1. #!/bin/bash
  2. # Resources:
  3. #SBATCH --time=0-08:00:00 # DAYS-HOURS:MINUTES:SECONDS
  4. #SBATCH --ntasks=1
  5. #SBATCH --cpus-per-task=20
  6. #SBATCH --mem=5G
  7. #SBATCH --partition=short
  8. # Environment:
  9. #SBATCH --export=NONE
  10. ################################################################################
  11. # TITLE: TEchim - PART 2
  12. # VERSION: 0.8.2 (dev)
  13. # AUTHOR: Christoph Treiber, University of Oxford
  14. # DATE: 16/09/2025 (dd/mm/yyyy)
  15. # DESCRIPTION: This script combines output from PART1
  16. ################################################################################
  17. ################################################################################
  18. # REQUIREMENTS:
  19. # - STAR (https://github.com/alexdobin/STAR)
  20. # - samtools
  21. # - bedtools
  22. # - blast
  23. ################################################################################
  24. ################################################################################
  25. # load modules
  26. module load rna-star
  27. module load blast
  28. module load parallel
  29. ################################################################################
  30. ################################################################################
  31. # set parameters
  32. wd=path/to/wd # working directory (no trailing "/")
  33. path_to_PART1_output=$wd"/" # with trailing "/"
  34. SNa="EXP_NAME" # Experiment name
  35. nc=${SLURM_CPUS_PER_TASK:-1} # number of cores (default:1)
  36. REFpath= # if left empty (recommended) then REFpath from PART1 is used
  37. ################################################################################
  38. ################################################################################
  39. # functions:
  40. get_variables()
  41. {
  42. # assign REFpath parameter
  43. if [ -z $REFpath ]; then
  44. if [ -e $path_to_PART1_output"."$SNa"_refpath" ]; then
  45. REFpath=$(cat $path_to_PART1_output"."$SNa"_refpath")
  46. else
  47. echo " #### ERROR: path to output from PART1 is corrupt - no file named .""$SNa""_refpath"
  48. exit
  49. fi
  50. fi
  51. # assign REFbase parameter
  52. if [ -e $REFpath"REFERENCE_basename" ]; then
  53. REFbase=$(cat $REFpath"REFERENCE_basename")
  54. else
  55. echo " #### ERROR: reference path is corrupt - no file named REFERENCE_basename"
  56. exit
  57. fi
  58. # check strandedness of input FASTQ
  59. if [ -e $path_to_PART1_output"."$SNa"_strandedness" ]; then
  60. stranded=$(cat $path_to_PART1_output"."$SNa"_strandedness")
  61. else
  62. echo " #### ERROR: path to output from PART1 is corrupt - no file named .""$SNa""_strandedness"
  63. exit
  64. fi
  65. if [ -e $path_to_PART1_output"."$SNa"_maxfraglength" ]; then
  66. MaxFragLength=$(sort -nr $path_to_PART1_output"."$SNa"_maxfraglength" | head -n1)
  67. else
  68. echo " #### ERROR: path to output from PART1 is corrupt - no file named .""$SNa""_maxfraglength"
  69. exit
  70. fi
  71. # check readlength of input FASTQ
  72. if [ -e $path_to_PART1_output"."$SNa"_fastalength" ]; then
  73. fastalength=$(cat $path_to_PART1_output"."$SNa"_fastalength")
  74. else
  75. echo " #### ERROR: path to output from PART1 is corrupt - no file named .""$SNa""_fastalength"
  76. exit
  77. fi
  78. }
  79. write_logfile()
  80. {
  81. logname=$(date | awk '{gsub(/\:/,"-",$5); print $4$3$2"_"$5}')
  82. echo "=====================" > $wd"/"$SNa"_PART2_"$logname".log"
  83. echo "|| TEchim - PART 2 || " >> $wd"/"$SNa"_PART2_"$logname".log"
  84. echo "=====================" >> $wd"/"$SNa"_PART2_"$logname".log"
  85. echo "Parameters:" >> $wd"/"$SNa"_PART2_"$logname".log"
  86. echo "Working directory:" "$wd" >> $wd"/"$SNa"_PART2_"$logname".log"
  87. echo "Location of PART1 output:" "$path_to_PART1_output" >> $wd"/"$SNa"_PART2_"$logname".log"
  88. echo "Sample name:" "$SNa" >> $wd"/"$SNa"_PART2_"$logname".log"
  89. echo "Reference files:" "$REFpath$REFbase" >> $wd"/"$SNa"_PART2_"$logname".log"
  90. echo "--------------------------------" >> $wd"/"$SNa"_PART2_"$logname".log"
  91. echo " --> starting at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  92. echo "--------------------------------" >> $wd"/"$SNa"_PART2_"$logname".log"
  93. }
  94. process_P1out_TE()
  95. {
  96. cd $wd
  97. echo " --> start processing PART1 output for TE at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  98. cat $path_to_PART1_output$SNa*"/"$SNa*"_out13_breakpoints.bed" | bedtools sort -i - > $SNa"_in10_combined.sorted.bed"
  99. if [ $stranded = "0" ]; then
  100. bedtools intersect -wa -a $SNa"_in10_combined.sorted.bed" -b $REFpath$REFbase"_GENES.bed" -loj > $SNa"_out01_genetagged.tsv"
  101. else
  102. bedtools intersect -wa -a $SNa"_in10_combined.sorted.bed" -b $REFpath$REFbase"_GENES.bed" -loj -s > $SNa"_out01_genetagged.tsv"
  103. fi
  104. # Also extract those reads that were not inside annotated gene
  105. #grep -Fvf <(tr "|" "\t" < $SNa"_in10_combined.sorted.bed" | awk '{print $4}') <(cat $SNa"_out01_genetagged.tsv") > $SNa"_out01b_ReadsOutsideGenes.tsv"
  106. # separate | delimited field
  107. tr '|' '\t' < $SNa"_out01_genetagged.tsv" > $SNa"_out02_sepparated.tsv" && rm $SNa"_out01_genetagged.tsv"
  108. # generate column that contains the "basic" TE name i.e. TE_LTR ==> TE
  109. # and create column with BASE readname (no :A or :B)
  110. awk 'BEGIN {OFS = "\t"} {
  111. a = $5
  112. gsub(/_LTR/,"",a)
  113. c = substr($4, 1, length($4)-2)
  114. print $0"\t"a"\t"c
  115. }' < $SNa"_out02_sepparated.tsv" > $SNa"_out03pre_TEbase.tsv" && rm $SNa"_out02_sepparated.tsv"
  116. wc_predup=$(wc -l $SNa"_out03pre_TEbase.tsv" | awk '{print $1}')
  117. # remove duplicate reads (where both :A and :B version of the same reads were picked up
  118. awk '!seen[$21]++' $SNa"_out03pre_TEbase.tsv" > $SNa"_out03_TEbase.tsv" && rm $SNa"_out03pre_TEbase.tsv"
  119. rm $SNa"_in10_combined.sorted.bed"
  120. echo " ---- $(wc -l $SNa"_out03_TEbase.tsv" | awk '{print $1}') TE reads ($wc_predup before removing duplicates)" >> $wd"/"$SNa"_PART2_"$logname".log"
  121. echo " <-- done processing PART1 output for TE at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  122. }
  123. combine_hits_of_each_TE()
  124. {
  125. cd $wd
  126. echo " --> start combining TE reads at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  127. # create list of all TEs in dataset
  128. cut -f20 $1 | sort | uniq > $SNa"_out03a_uniqueTEs.tsv"
  129. # to create collection file, first make sure this file does not yet exist
  130. rm -f $SNa"_out12_OUTPUT.tsv"
  131. # loop through all TEs in the dataset
  132. while read TE
  133. do
  134. # grep TEs from combined data set
  135. awk -v t="$TE" '{if ($20 == t) print $0;}' $1 > "tmp."$SNa"_"$TE"_out04.tsv"
  136. if [ -s "tmp."$SNa"_"$TE"_out04.tsv" ]; then
  137. ###### SPLIT into TE-GENE and GENE-TE
  138. awk '{if ($7 == "TE-GENE") print $0;}' "tmp."$SNa"_"$TE"_out04.tsv" > "tmp."$SNa"_"$TE"_out05_TE-GENE.tsv"
  139. # merge, counting unique read NAMES, and allowing for 20nt range of precise insertion site
  140. # header: Chr(genome)|Start(genome)|End(genome)|TE|"."|Strand(genome)|NumberOfSamples|NumberOfReads|Breakpoint(genome)|Strand(TE)|TE-GENEorGENE-TE|GeneNames|AllSamples|AllBreakpoints(TE)
  141. if [ -s "tmp."$SNa"_"$TE"_out05_TE-GENE.tsv" ]; then
  142. bedtools merge -i "tmp."$SNa"_"$TE"_out05_TE-GENE.tsv" -c 5,12,13,8,21,3,6,7,17,8,10,5 -o mode,mode,mode,count_distinct,count_distinct,mode,mode,mode,distinct,collapse,collapse,distinct -d 20 > "tmp."$SNa"_"$TE"_out06_TE-GENE.tsv"
  143. fi
  144. awk '{if ($7 == "GENE-TE") print $0;}' "tmp."$SNa"_"$TE"_out04.tsv" > "tmp."$SNa"_"$TE"_out05_GENE-TE.tsv"
  145. if [ -s "tmp."$SNa"_"$TE"_out05_GENE-TE.tsv" ]; then
  146. bedtools merge -i "tmp."$SNa"_"$TE"_out05_GENE-TE.tsv" -c 5,12,13,8,21,3,6,7,17,8,10,5 -o mode,mode,mode,count_distinct,count_distinct,mode,mode,mode,distinct,collapse,collapse,distinct -d 20 > "tmp."$SNa"_"$TE"_out06_GENE-TE.tsv"
  147. fi
  148. ###### COMBINE TE-GENE and GENE-TE
  149. cat "tmp."$SNa"_"$TE"_out06_"*".tsv" > "tmp."$SNa"_"$TE"_out08.tsv"
  150. bedtools sort -i "tmp."$SNa"_"$TE"_out08.tsv" > "tmp."$SNa"_"$TE"_out09.tsv"
  151. # create list of all genes
  152. # first, replace "," with tab, then sort, then pick unique strings, then remove ""
  153. cut -f12 "tmp."$SNa"_"$TE"_out09.tsv" | tr ',' '\n' | sort | uniq | sed '/\./d' > "tmp."$SNa"_"$TE"_out11_genes.tsv"
  154. # this list of genes is used to add non-anchor hits to ANCHOR hits, if they overlap with the same gene and TE
  155. while read GENE
  156. do
  157. # create output file that contains for every gene all the insertions of that TE
  158. if [ $stranded = "0" ]; then
  159. awk -v g="$GENE" '{if ($12 ~ g && $4 !~ g) print g"\t"$1"\t"$6"\t"$9"\t"$4"\t"$11"\t"$10"\t"$7"\t"$8"\tunstranded\t"$13"\t"$14"\t"$15;}' "tmp."$SNa"_"$TE"_out09.tsv" >> $SNa"_out12_OUTPUT.tsv"
  160. else
  161. awk -v g="$GENE" '{if ($12 ~ g && $4 !~ g) print g"\t"$1"\t"$6"\t"$9"\t"$4"\t"$11"\t"$10"\t"$7"\t"$8"\tmRNA\t"$13"\t"$14"\t"$15;}' "tmp."$SNa"_"$TE"_out09.tsv" >> $SNa"_out12_OUTPUT.tsv"
  162. fi
  163. done < "tmp."$SNa"_"$TE"_out11_genes.tsv"
  164. rm -f "tmp."$SNa"_"$TE*
  165. fi
  166. done < $SNa"_out03a_uniqueTEs.tsv"
  167. # remove empty lines
  168. grep . $SNa"_out12_OUTPUT.tsv" > $SNa"_out12a_OUTPUT.tsv"
  169. rm $SNa"_out12_OUTPUT.tsv"
  170. rm $SNa"_out03a_uniqueTEs.tsv"
  171. rm $SNa"_out03_TEbase.tsv"
  172. echo " <-- done combining TE reads at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  173. }
  174. check_for_TE_splicesites()
  175. {
  176. cd $wd
  177. echo " --> start checking for TE breaks at splice sites at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  178. # now, every line is one incident of a gene-TE chimera
  179. while IFS= read -r line
  180. do
  181. # convert line to bed format
  182. # header: Chr(genome)\tStart(genome)[this is the breakpoint minus 1]\tEnd(genome)[this is the breakpoint]\tTE|Gene|TE-GENEorGENE-TE\t"."\tStrand(genome)
  183. awk 'BEGIN{OFS="\t"}{print $2, $4-1, $4, $5"|"$1"|"$6, ".", $3}' <<< "$line" > "tmp."$SNa"_out13.bed"
  184. # $a is TE-GENE or GENE-TE
  185. a=$(echo $line | awk '{print $6}')
  186. # $b is the gene
  187. b=$(echo $line | awk '{print $1}')
  188. # intersect with FEATURES file to get all ovelapping features (output is ;-separated)
  189. if [ $stranded = "0" ]; then
  190. d=$(bedtools intersect -a "tmp."$SNa"_out13.bed" -b $REFpath$REFbase"_FEATURES.bed" -loj -wa | awk '{print $10}' | paste -sd ";" -)
  191. else
  192. d=$(bedtools intersect -a "tmp."$SNa"_out13.bed" -b $REFpath$REFbase"_FEATURES.bed" -loj -wa -s | awk '{print $10}' | paste -sd ";" -)
  193. fi
  194. # check whether breakpoint on the genome overlaps with splice donor site (in the case of a GENE-TE fragment)
  195. # or with splice acceptor site (in the case of a TE-GENE fragment). the REF files _SPLICE_DONORS.bed and
  196. # _SPLICE_ACCEPTORS.bed have a +/- 10nt, but the precise breakpoint is extracted here (which is the sequence
  197. # number of the last nucleotide that is still part of the exon for SPLICE_DONORS and the first exonic nt
  198. # for SPLICE_ACCEPTORS.
  199. # for GENE-TE fragments, the exon is the splice donor
  200. if [ $a == "GENE-TE" ]
  201. then
  202. grep -F $b $REFpath$REFbase"_SPLICE_DONORS.bed" > "tmp."$SNa"_out14_ref_for_overlap.bed"
  203. c=$(bedtools intersect -a "tmp."$SNa"_out13.bed" -b "tmp."$SNa"_out14_ref_for_overlap.bed" -loj -wa | head -n 1 | awk '{print $10}' | cut -d "|" -f2)
  204. rm "tmp."$SNa"_out14_ref_for_overlap.bed"
  205. # for TE-GENE fragments, the exon is the splice acceptor
  206. elif [ $a == "TE-GENE" ]
  207. then
  208. grep -F $b $REFpath$REFbase"_SPLICE_ACCEPTORS.bed" > "tmp."$SNa"_out14_ref_for_overlap.bed"
  209. c=$(bedtools intersect -a "tmp."$SNa"_out13.bed" -b "tmp."$SNa"_out14_ref_for_overlap.bed" -loj -wa | head -n 1 | awk '{print $10}' | cut -d "|" -f2)
  210. rm "tmp."$SNa"_out14_ref_for_overlap.bed"
  211. else
  212. c="N/A"
  213. fi
  214. if [[ $c = "" ]]; then c="."; fi
  215. # the loop aboce created the unix variable $c. here, this variable is appended to the main file.
  216. awk -v c="$c" -v d="$d" 'BEGIN{OFS=FS="\t"}{print $0, c, d}' <<< "$line"
  217. rm "tmp."$SNa"_out13.bed"
  218. done < $1 > $SNa"_out15.tsv"
  219. rm $1
  220. echo " <-- done checking for TE breaks at splice sites at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  221. }
  222. split_TE_breakpoints()
  223. {
  224. cd "$wd"
  225. echo " --> start tyding up TE breakpoints at ... $(date)" >> "$wd/$SNa_PART2_$logname.log"
  226. # pool TE breakpoints from col 12
  227. while IFS= read -r line; do
  228. awk -F'\t' -v OFS="\t" '{print $12}' <<< "$line" \
  229. | awk -v RS=',' '{print}' \
  230. | LC_ALL=C sort \
  231. | uniq -c \
  232. | awk '{if (NR!=1) printf "%s(%s),",$2,$1} END{print ""}' \
  233. | awk 'NF'
  234. done < "$1" > "${SNa}_newcolb"
  235. # pool TE breakpoints from col 11
  236. while IFS= read -r line; do
  237. awk -F'\t' -v OFS="\t" '{print $11}' <<< "$line" \
  238. | awk -v RS=',' '{print}' \
  239. | LC_ALL=C sort \
  240. | uniq -c \
  241. | awk '{if (NR!=1) printf "%s(%s),",$2,$1} END{print ""}' \
  242. | awk 'NF'
  243. done < "$1" > "${SNa}_newcolc"
  244. # drop original TE-breakpoint field(s) and keep the same column reordering
  245. awk 'BEGIN{FS=OFS="\t"}{print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$13,$14,$15}' "$1" > "${SNa}_newcola"
  246. # append pooled TE breakpoints
  247. paste "${SNa}_newcola" "${SNa}_newcolb" "${SNa}_newcolc" > "${SNa}_TE_chimericreads_final.tsv"
  248. rm -f "${SNa}_newcola" "${SNa}_newcolb" "${SNa}_newcolc"
  249. rm -f "$1"
  250. echo " <-- done tyding up TE breakpoints at ... $(date)" >> "$wd/$SNa_PART2_$logname.log"
  251. }
  252. add_splice_ratio()
  253. {
  254. echo " --> start adding expression levels at ... $(date)" >> "${SNa}_PART2_${logname}.log"
  255. # Get list of unique sample IDs (e.g. S1, S2, ...) from PART1 output directory names
  256. list_of_SNo=$(find "$path_to_PART1_output" -maxdepth 1 -name "${SNa}_S*" | rev | cut -d "/" -f 1 | awk '{gsub(/_/,"\t"); print $2}' | awk '!seen[$0]++' | rev)
  257. export SNa path_to_PART1_output stranded list_of_SNo
  258. # Define the processing function that operates on a single line of the input TSV
  259. process_chimera_line() {
  260. line="$1"
  261. splicesite=$(echo "$line" | awk '{print $12}')
  262. # Skip processing if the splice site is not a number (i.e., ".")
  263. if ! [[ "$splicesite" =~ ^[0-9]+$ ]]; then
  264. echo -e "$line"
  265. return
  266. fi
  267. # Extract key metadata fields from the input line
  268. chromosome=$(echo "$line" | awk '{print $2}')
  269. strand=$(echo "$line" | awk '{print $3}')
  270. fragtype=$(echo "$line" | awk '{print $6}')
  271. # Array to store per-sample (SNo) results in the format S1(42)|S2(17)...
  272. sums_by_SNo=() # this will hold S1(42)|S2(37)|...
  273. # Iterate over each sample ID (SNo)
  274. for SNo in $list_of_SNo; do
  275. sum_for_SNo=0
  276. # Find all LNo subdirectories belonging to the current SNo
  277. list_of_LNo=$(find "$path_to_PART1_output" -maxdepth 1 -name "${SNa}_${SNo}_*" | rev | cut -d "/" -f 1 | awk '{gsub(/_/,"\t"); print $2"\t"$1}' | rev | grep "$SNo" | awk '{print $1}')
  278. # Iterate over each library (LNo) for the current sample
  279. for LNo in $list_of_LNo; do
  280. SJout="$path_to_PART1_output${SNa}_${SNo}_${LNo}/${SNa}_${SNo}_${LNo}_STAR/${SNa}_${SNo}_${LNo}_out4_SJ.out.tab"
  281. # Depending on strand and fragment type, look in the correct column of SJ.out
  282. # Note that exon-intron junctions are sometimes off by +/- 1nt. We therefore pool all predicted junctions between -1 breakpoint +1
  283. if [[ "$strand" == "+" ]]; then
  284. if [[ "$fragtype" == "GENE-TE" ]]; then
  285. sum=$(awk -v chr="$chromosome" -v pos="$splicesite" '$1 == chr && ($2 >= pos - 1 && $2 <= pos + 1) {s += $7} END {print s+0}' "$SJout")
  286. elif [[ "$fragtype" == "TE-GENE" ]]; then
  287. sum=$(awk -v chr="$chromosome" -v pos="$splicesite" '$1 == chr && ($3 >= pos - 1 && $3 <= pos + 1) {s += $7} END {print s+0}' "$SJout")
  288. fi
  289. elif [[ "$strand" == "-" ]]; then
  290. if [[ "$fragtype" == "GENE-TE" ]]; then
  291. sum=$(awk -v chr="$chromosome" -v pos="$splicesite" '$1 == chr && ($3 >= pos - 1 && $3 <= pos + 1) {s += $7} END {print s+0}' "$SJout")
  292. elif [[ "$fragtype" == "TE-GENE" ]]; then
  293. sum=$(awk -v chr="$chromosome" -v pos="$splicesite" '$1 == chr && ($2 >= pos - 1 && $2 <= pos + 1) {s += $7} END {print s+0}' "$SJout")
  294. fi
  295. fi
  296. # Add to the running sum for this SNo
  297. sum_for_SNo=$((sum_for_SNo + sum))
  298. done
  299. # Append result for this SNo
  300. sums_by_SNo+=("${SNo}(${sum_for_SNo})")
  301. done
  302. # Combine all SNo results into one pipe-separated field and append to line
  303. splice_summary=$(IFS="|"; echo "${sums_by_SNo[*]}")
  304. echo -e "$line\t$splice_summary"
  305. }
  306. # Export the processing function to be used by parallel
  307. export -f process_chimera_line
  308. # Run the function on each input line in parallel, preserving input order
  309. cat "$1" | parallel -j "$nc" -k process_chimera_line > "${SNa}_TE_chimericreads_final_withSpliceRatios.tsv"
  310. echo " <-- done adding expression levels at ... $(date)" >> "${SNa}_PART2_${logname}.log"
  311. }
  312. ################################################################################
  313. ################################################################################
  314. # execute:
  315. # change to wd
  316. cd $wd
  317. get_variables
  318. write_logfile
  319. process_P1out_TE
  320. combine_hits_of_each_TE $wd"/"$SNa"_out03_TEbase.tsv"
  321. if [ $stranded != "0" ]; then
  322. check_for_TE_splicesites $wd"/"$SNa"_out12a_OUTPUT.tsv"
  323. split_TE_breakpoints $wd"/"$SNa"_out15.tsv"
  324. add_splice_ratio $SNa"_TE_chimericreads_final.tsv"
  325. else
  326. split_TE_breakpoints $wd"/"$SNa"_out12a_OUTPUT.tsv"
  327. fi
  328. echo " <-- all done at ... $(date)" >> $wd"/"$SNa"_PART2_"$logname".log"
  329. echo "================================" >> $wd"/"$SNa"_PART2_"$logname".log"

TEChim_PART2_forSLURM_0.8.2.sh at commit 08023cb, under MIT · at the source

Overview

  1. Department of Biology, University of Oxford, Oxford, United Kingdom
Institutions: University of Oxford (United Kingdom)
Journal: eLife, volume 15, article RP110625
Dates: published online 17 November 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.110625 · PMID 43041067 · PMCID PMC13777269 · OpenAlex W7148476765
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: drosophila (organism), cellular / molecular (subfield)
Methods: Statistics
Keywords: D. melanogaster
MeSH: Alternative Splicing*, Brain*, DNA Transposable Elements*, Drosophila*, Drosophila melanogaster*, Animals, Exons, Introns, Protein Isoforms, RNA Splicing (* major topic)
Topic: RNA Research and Splicing (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: UK Research and Innovation (EP/X038882/1 'InnovaTEbehaviour')
Citations: not cited yet (Europe PMC); 23 references in the paper
Research resources: Canton-S (CS) RRID:BDSC_64349, SAMtools RRID:SCR_002105, STAR RRID:SCR_004463, BLAST RRID:SCR_004870, FLASH RRID:SCR_005531, ApE (A plasmid Editor) RRID:SCR_014266

Abstract

The extraordinary complexity of the brain depends in part on the vast diversity of mRNA isoforms it expresses, often in a cell-type specific manner. In a recent study, we found that intronic transposable elements (TEs) are spliced into neural transcripts and diversify the splice isoform repertoire of neurons and glia (Treiber and Waddell, 2020). A recent paper by Azad et al. revisits these findings using their TIDAL analysis pipeline applied to our published data (Azad et al., 2024). Their analysis did not find any of the splicing reads we reported and although they used RT-PCR to test seven of the 264 TE–gene pairs we had previously reported, they failed to validate TE–gene splicing in any of them. Here, we conduct a quantitative analysis of TE exonisation and show that intronic TE insertions are frequently recruited as alternative exons, with exon usage ranging from rare events to near-complete inclusion in transcripts. We implement this analysis in an improved version of our TEChim software and present clear support for TE–gene splicing at the seven loci tested by Azad et al. We also identify methodological issues in the experimental and computational design of the Azad et al. study that likely explains their failure to detect TE–gene chimeras, while demonstrating that TE–gene splicing can be detected by RT-PCR under appropriate experimental conditions. Together, our data demonstrates that TE splice isoforms are not rare artefacts but measurable and biologically relevant features of the Drosophila brain transcriptome that may contribute to the molecular complexity and functional adaptability of the brain.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

charliefornia/techim

License: MIT
State: the link answers, verified on 20 November 2026
Evidence: files inventoried
Commit: 08023cb6efa41b5df1ef075bd04103c7e3123b18, 4 November 2026
Languages: Shell (12)
Size: 14 files, 12 scripts
Software Heritage: not archived
Found in: the resources table
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: BEDTools (9 files), SAMtools (7 files), STAR (3 files)
Availability: 1 check, the latest on 20 November 2026: the link answers
  • 20 November 2026: the link answers
14 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 12 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Data links

Data availability

Data has been made publicly available as part of a previous study (Treiber and Waddell, 2020a, Treiber and Waddell, 2020b).

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 20 November 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 3 authors, 1 keyword, 10 MeSH terms, 1 funder, 20 references, 6 RRIDs.

Cite

This paper

Choucri, M., Rainey, T., & Treiber, C. D. (2026). Transposons contribute to splice-isoform diversity in the &lt;i&gt;Drosophila&lt;/i&gt; brain. eLife, 15, RP110625. https://doi.org/10.7554/elife.110625

BibTeX

@article{choucri2026transposons,
author = {Choucri, Malak and Rainey, Tina and Treiber, Christoph Daniel},
title = {{Transposons contribute to splice-isoform diversity in the \&lt;i\&gt;Drosophila\&lt;/i\&gt; brain}},
journal = {eLife},
year = {2026},
month = nov,
volume = {15},
pages = {RP110625},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.110625},
url = {https://doi.org/10.7554/elife.110625},
pmid = {43041067},
pmcid = {PMC13777269}
}

RIS

TY - JOUR
AU - Choucri, Malak
AU - Rainey, Tina
AU - Treiber, Christoph Daniel
TI - Transposons contribute to splice-isoform diversity in the &lt;i&gt;Drosophila&lt;/i&gt; brain
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/11/17
VL - 15
SP - RP110625
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.110625
UR - https://doi.org/10.7554/elife.110625
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.110625",
"type": "article-journal",
"title": "Transposons contribute to splice-isoform diversity in the &lt;i&gt;Drosophila&lt;/i&gt; brain",
"container-title": "eLife",
"author": [
{
"family": "Choucri",
"given": "Malak"
},
{
"family": "Rainey",
"given": "Tina"
},
{
"family": "Treiber",
"given": "Christoph Daniel"
}
],
"container-title-short": "eLife",
"volume": "15",
"page": "RP110625",
"DOI": "10.7554/elife.110625",
"PMID": "43041067",
"PMCID": "PMC13777269",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.110625",
"language": "en",
"issued": {
"date-parts": [
[
2026,
11,
17
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1126/sciadv.aed2952 [code]
Activation of transposable elements is linked to a region- and cell type-specific interferon response in Parkinson's disease.
Journal: Science advances
In common: STAR, BEDTools, SAMtools, cellular / molecular, 4 references
[2] doi:10.1126/sciadv.aeg5791 [code]
Retroviral insertions contributed to the divergence of human and chimpanzee brains.
Journal: Science advances
In common: BEDTools, SAMtools, cellular / molecular, 3 references
[3] doi:10.1016/j.xhgg.2026.100652 [code]
CRISPR-engineered deletion of POGZ alters transcription factor binding at promoters of genes involved in synaptic signaling.
Journal: HGG advances
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[4] doi:10.1038/s41586-026-10512-9 [code]
Astrocyte glucocorticoid receptor signalling restricts neuronal plasticity.
Journal: Nature
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[5] doi:10.1007/s12031-025-02469-7 [code]
Utilisation of Machine Learning Approaches Improves RNA-Seq Transcriptome Analyses in Alzheimer's Disease Brain.
Journal: Journal of molecular neuroscience : MN
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[6] doi:10.1038/s41467-025-57286-8 [code]
Cryptic mitochondrial DNA mutations coincide with mid-late life and are pathophysiologically informative in single cells across tissues and species.
Journal: Nature communications
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[7] doi:10.1038/s41467-023-41033-y [code]
Divergent single cell transcriptome and epigenome alterations in ALS and FTD patients with C9orf72 mutation.
Journal: Nature communications
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[8] doi:10.1007/s00401-022-02450-3 [code]
Aberrant NOVA1 function disrupts alternative splicing in early stages of amyotrophic lateral sclerosis.
Journal: Acta neuropathologica
In common: STAR, BEDTools, SAMtools, cellular / molecular, 2 references
[9] doi:10.1128/jvi.01858-23 [code]
Reanalysis of single-cell RNA sequencing data does not support herpes simplex virus 1 latency in non-neuronal ganglionic cells in mice.
Journal: Journal of virology
In common: STAR, BEDTools, SAMtools, 2 references
[10] doi:10.1016/j.cub.2022.07.038 [code]
Gliotransmission of D-serine promotes thirst-directed behaviors in Drosophila.
Journal: Current biology : CB
In common: drosophila, cellular / molecular, author Christoph Daniel Treiber

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.7554/elife.110625.svg)](https://openscicode.org/badge/doi/10.7554/elife.110625)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.7554/elife.110625.svg
   :target: https://openscicode.org/badge/doi/10.7554/elife.110625
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.110625"><img src="https://openscicode.org/badge/doi/10.7554/elife.110625.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.