Skip to content

Rc gc prcnt dev#15

Open
coxrs wants to merge 3 commits into
mainfrom
rc-gc-prcnt-dev
Open

Rc gc prcnt dev#15
coxrs wants to merge 3 commits into
mainfrom
rc-gc-prcnt-dev

Conversation

@coxrs

@coxrs coxrs commented Feb 20, 2025

Copy link
Copy Markdown
Collaborator

Description

Please include a summary of the changes being made within your PR. Please also include relevant motivation and context.
Updated to calculate the percentage of GC basecalls within the reads. In summary, a for loop is used to pull just the read lines from the fastq file and produce two new variables that represent either a total number of bases and a concatenated string of bases. These new variables were then used to count the occurrence of G and C present in the concatenated string and calculate the percentage of the reads that are G or C using the total number of bases variable. The output adds a line indicating the file read and the percentage of GC calculated. Additionally, the test.yml file has been updated to check for the updated output as opposed to the output of the original python script.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
This was tested using the test file within the repository. Results were as expected: two reads with 50% GC content.

Checklist:

  • My code adheres to the repository style guide
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass locally with my changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant