Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Analyze Read Quality | NGS Data Processing
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Bioinformatics

bookChallenge: Analyze Read Quality

Tâche

Swipe to start coding

Write a Python function that processes sequencing read data in FASTQ format to assess read quality. The function should take a list of FASTQ lines and a quality threshold, and return the count of reads with an average quality score above the threshold.

  • Calculate the average quality score for each read using the quality string (fourth line of each FASTQ record).
  • Convert ASCII characters in the quality string to Phred scores using Sanger encoding (ord(char) - 33).
  • Count how many reads have an average quality score greater than the provided threshold.
  • Return the count of such reads.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Analyze Read Quality

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write a Python function that processes sequencing read data in FASTQ format to assess read quality. The function should take a list of FASTQ lines and a quality threshold, and return the count of reads with an average quality score above the threshold.

  • Calculate the average quality score for each read using the quality string (fourth line of each FASTQ record).
  • Convert ASCII characters in the quality string to Phred scores using Sanger encoding (ord(char) - 33).
  • Count how many reads have an average quality score greater than the provided threshold.
  • Return the count of such reads.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
single

single

some-alt