i had ran a PI chip yesterday.And today i found that there was something wrong in the report.Just as shown in the pdf file,a short reads-about 30 bps was mixed into the final library.could anybody give me some suggestion about the origin of the short reads.Thanks!
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
...for example, these are (humble) Python 3 scripts that use pysam, pandas and plotly:
first I would check the exact position of the short reads peak:
Code:import pysam import pandas as pd from plotly.offline import plot import plotly.graph_objs as go bamfiles = ['IonXpress_003.bam', 'IonXpress_004.bam', 'IonXpress_007.bam', 'IonXpress_005.bam' ] # length_data will hold data counts for every bam file length_data = [] # collect sequence length counts for file in bamfiles: print("Reading file: " + file) bam = pysam.AlignmentFile(file, "rb") selected = bam.fetch() # alen = length of the aligned reference segment # qlen = length of the aligned read segment # rlen = length of the aligned read segment, including soft-clipped bases reads_xlen = [read.alen for read in selected] counts = [(i, reads_xlen.count(i)) for i in range(min(reads_xlen), max(reads_xlen))] length_data.append(pd.DataFrame(counts)) # create traces data = [go.Scatter(x=bamdata[0], y=bamdata[1], mode = 'lines', name=bamfiles[i]) for i, bamdata in enumerate(length_data)] # plot data scatterplot = plot({'data': data})
Code:import pysam # choose a file that contains the peak, select the peak position file = 'IonXpress_004.bam' peakpos = 29 # let's say the peak was at 29 bases # retrieve all sequences from reads with the alignment length you specified bam = pysam.AlignmentFile(file, "rb") selected = bam.fetch() reads = [read for read in selected if read.alen == peakpos] reads_seq = [read.seq for read in reads] # you can count them print("Number of sequences retrieved:", len(reads_seq)) # see how many different entries you have entries = set(reads_seq) print("Number of different entries:", len(entries)) # categorize them cat_entries = [(entry, reads_seq.count(entry)) for entry in entries] cat_entries.sort(key = lambda x:x[1]) # print the 20 most common sequences print('\nMost common sequences:') print('[hits] sequence') for i in range(20): print('[{0}] {1}'.format(cat_entries[i][1], cat_entries[i][0]))
Last edited by r.rosati; 08-23-2016, 12:20 PM.
Comment
-
Thanks for your help!I had send the bam files to the technical support.His anwser was that the short reads were primer dimers.He suggested us to optimize the experiment protocal.So we will improve the experiment pipeline and run one sample on the PGM to test the propose!
Comment
Latest Articles
Collapse
-
by seqadmin
Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...-
Channel: Articles
04-04-2024, 04:25 PM -
-
by seqadmin
Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...-
Channel: Articles
03-22-2024, 06:39 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 04-11-2024, 12:08 PM
|
0 responses
31 views
0 likes
|
Last Post
by seqadmin
04-11-2024, 12:08 PM
|
||
Started by seqadmin, 04-10-2024, 10:19 PM
|
0 responses
32 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 10:19 PM
|
||
Started by seqadmin, 04-10-2024, 09:21 AM
|
0 responses
28 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 09:21 AM
|
||
Started by seqadmin, 04-04-2024, 09:00 AM
|
0 responses
53 views
0 likes
|
Last Post
by seqadmin
04-04-2024, 09:00 AM
|
Comment