Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Primer test cases #8

Open
averagehat opened this issue Oct 9, 2019 · 1 comment
Open

Create Primer test cases #8

averagehat opened this issue Oct 9, 2019 · 1 comment
Assignees

Comments

@averagehat
Copy link
Collaborator

No description provided.

@averagehat averagehat assigned averagehat and SageCode98 and unassigned averagehat Oct 9, 2019
@averagehat averagehat changed the title Create test cases Create Primer test cases Oct 9, 2019
@averagehat
Copy link
Collaborator Author

averagehat commented Oct 16, 2019

Function to test:

def primer_annotate(vcf, primerfile, consensus, bamfile, options): 
   # see description of Count object below. Return one count per row in VCF 
    return counts

Example test function

def test_primer_annotate():

  result = primer_annotate(vcf, primerfile, consensus, bamfile, options)
  # parse the vcf, primerfile, consensus, bamfile for the expected values 
  # and compare with `result`

See #10 for expected behavior.

@dataclass
class Count:
    totalWhAlt: int
    totalWithoutAlt: int
    withAltWithinPrimer: int
    withoutAltWithinPrimer: int
example = Count(10, 5, 7, 2)

The fields above map to:

  • count total reads that have that alt
  • count total reads that don’t have alt
  • count reads that have that alt and which end within the primer’s mapped region
  • count reads that have that don’t have the alt and which end within the primer’s mapped region

@averagehat averagehat added this to the Two Primer Tests milestone Oct 25, 2019
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

No branches or pull requests

2 participants