@@ -300,23 +300,15 @@ makeUnsplicedTibble <- function(combinedNewUnsplicedSe,newUnsplicedSeList,
300300 } , BPPARAM = bpParameters ))
301301 newUnsplicedTibble <- newUnsplicedTibble %> %
302302 left_join(rowDataCombined , by = " row_id" ) %> %
303- separate(row_id , c(" sample" ," rcName" ), sep = " \\ -" ) %> %
304- mutate(sample_id = as.integer(gsub(" s" ," " ,sample ))) %> %
305- mutate(sample_name = colDataNames [sample_id ]) %> %
306- select(- sample , - sample_id ) %> %
307303 mutate(readCount_tmp = readCount ) %> %
308- group_by(chr ,strand , start , end , sample_name ) %> %
304+ group_by(chr ,strand , start , end ) %> %
309305 summarise(readCount = sum(readCount ),
310- geneReadProp = sum(geneReadProp ),
311- txScore = weighted.mean(txScore , readCount_tmp ),
312- txScore.noFit = weighted.mean(txScore.noFit , readCount_tmp )) %> %
313- group_by(chr , strand , start , end ) %> %
314- summarise(readCount = sum(readCount ),
315- maxTxScore = txScore ,
316- maxTxScore.noFit = txScore.noFit ,
317- NSampleReadCount = sum(readCount > = min.readCount ),
318- NSampleReadProp = sum(geneReadProp > =
319- min.readFractionByGene ),
320- NSampleTxScore = sum(maxTxScore > min.txScore.singleExon ))
306+ maxTxScore = weighted.mean(txScore , readCount_tmp ),
307+ maxTxScore.noFit = weighted.mean(txScore.noFit , readCount_tmp ),
308+ NSampleReadCount = sum(readCount_tmp > = min.readCount ),
309+ NSampleReadProp = sum(geneReadProp > =
310+ min.readFractionByGene ),
311+ NSampleTxScore = sum(txScore > min.txScore.singleExon ))
312+
321313 return (newUnsplicedTibble )
322314}
0 commit comments