Kenneth Yang
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
      • Create new note
      • Create a note from template
        • Sharing URL Link copied
        • /edit
        • View mode
          • Edit mode
          • View mode
          • Book mode
          • Slide mode
          Edit mode View mode Book mode Slide mode
        • Customize slides
        • Note Permission
        • Read
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Write
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invite by email
        Invitee

        This note has no invitees

      • Publish Note

        Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

        Your note will be visible on your profile and discoverable by anyone.
        Your note is now live.
        This note is visible on your profile and discoverable online.
        Everyone on the web can find and read all notes of this public team.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        See published notes
        Unpublish note
        Please check the box to agree to the Community Guidelines.
        View profile
      • Commenting
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Suggest edit
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
      • Emoji Reply
      • Enable
      • Versions and GitHub Sync
      • Note settings
      • Note Insights New
      • Engagement control
      • Make a copy
      • Transfer ownership
      • Delete this note
      • Save as template
      • Insert from template
      • Import from
        • Dropbox
        • Google Drive
        • Gist
        • Clipboard
      • Export to
        • Dropbox
        • Google Drive
        • Gist
      • Download
        • Markdown
        • HTML
        • Raw HTML
    Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
    Create Create new note Create a note from template
    Menu
    Options
    Engagement control Make a copy Transfer ownership Delete this note
    Import from
    Dropbox Google Drive Gist Clipboard
    Export to
    Dropbox Google Drive Gist
    Download
    Markdown HTML Raw HTML
    Back
    Sharing URL Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Customize slides
    Note Permission
    Read
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Write
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## What are GIAB genome-stratifications? GIAB (Genome in a Bottle) Stratifications are ==a collection of genomic regions== categorized into different types, designed ==to aid in the evaluation and comparison of genomics tools and pipelines==. These stratifications are used to benchmark the accuracy of variant calling tools across various genomic complexities and challenges. Here's a brief overview of the types of GIAB Stratifications: - **Low Complexity**: Includes regions with different types and sizes of low complexity sequence, such as homopolymers, Short Tandem Repeats (STRs), Variable Number of Tandem Repeats (VNTRs), and other locally repetitive sequences. - **Functional Technically Difficult**: Consists of functional or potentially functional regions that are also likely to be technically difficult to sequence. - **Genome Specific**: Covers difficult regions due to potentially difficult variation in a NIST/GIAB sample, (e.g. NA12878), including regions containing putative compound heterozygous variants, small regions containing multiple phased variants, and regions with potential structural or copy number variation. - **Functional Regions**: Stratifies variants inside and outside coding regions. - **GC Content**: Contains regions with different ranges of GC content. - **Mappability**: Includes regions where short read mapping can be challenging. - **Ancestry**: *Available only for GRCh38*, this category includes regions with inferred patterns of local ancestry. - **Segmental Duplications**: Focuses on regions with segmental duplications or regions with non-trivial self-chain alignments. - **Union**: Represents regions with different general types of difficult regions or any type of difficult region or complex variant. - **Other Difficult**: High variability regions like the VDJ and MHC, near gaps in the reference or errors in the reference, and rDNA (specific to CHM13). - **XY**: Chromosome XY specific regions such as PAR, XTR, or ampliconic. These stratifications are essential for benchmarking tools like [hap.py](https://github.com/Illumina/hap.py/tree/master), allowing researchers to evaluate how well their variant calling algorithms perform under different genomic conditions. The stratifications are organized into subdirectories within the GIAB GitHub repository, each containing associated READMEs, scripts, and notebooks used to generate the various stratifications. Additionally, `.tsv` files are provided for use when benchmarking with [hap.py](https://github.com/Illumina/hap.py/tree/master), offering paths to stratifications relative to the reference directory [3]. Citations: [1] https://www.biorxiv.org/content/10.1101/2023.10.27.563846v1.full [2] https://github.com/genome-in-a-bottle/genome-stratifications [3] https://www.nist.gov/programs-projects/genome-bottle [4] https://ftp-trace.ncbi.nlm.nih.gov/ReferenceSamples/giab/release/genome-stratifications/ ## The effect of GC content The effect of GC content on Next-Generation Sequencing (NGS) is primarily characterized by biases in library preparation, which can lead to uneven coverage of genomic regions. These biases are influenced by the thermodynamics of DNA polymerase activity during PCR amplification, which is a critical step in preparing samples for sequencing. Here's a summary of the key effects: - **Uneven Coverage**: Regions with extreme GC content (either very high or very low) can be underrepresented or overrepresented in the final sequencing library. This unevenness affects the ability to accurately call variants in these regions, potentially skewing the results of genomic analyses. - **PCR Amplification Bias**: The PCR amplification step, which is necessary for increasing the quantity of DNA fragments for sequencing, introduces biases. These biases favor the amplification of certain sequences over others, leading to imbalances in the representation of genomic regions with different GC contents. This is particularly problematic for regions with extreme GC content, where the balance of G and C bases makes them more difficult to amplify. - **Impact on Variant Calling**: Uneven coverage and biases in library preparation can compromise the accuracy of variant calling, especially in regions with extreme GC content. This can lead to false positives or negatives in the identification of genetic variations, which is crucial for understanding disease mechanisms and developing personalized treatments. :::info High GC → thermodynamically stable → more energy are required to denature and separate the DNA strands during PCR amplification → lower coverage because the PCR process is not efficient. Low GC → poor representation in the sequencing library, leading to sparse coverage and difficulty in distinguishing true variants from sequencing artifacts. ::: GIAB defines the ranges of GC content for genomic regions by identifying areas with specific fractions of G and C bases. This categorization is crucial because different sequencing technologies exhibit distinct error profiles in regions with varying GC content. Specifically, ==GC-rich and AT-rich regions tend to have reduced coverage and precision in variant calling==. To address this, GIAB identifies regions with specific GC percentages in 5% increments from 15% to 85%. This approach allows for a detailed understanding of how different genomic regions behave under various sequencing conditions, which is essential for accurate variant detection and interpretation. - **Relevant files**: ![image](https://hackmd.io/_uploads/Hyhwn0q7A.png) - **`gc30to55`**: This part specifies the range of GC content percentages for the genomic regions contained in the file. It means that the file includes regions with a GC content between 30% and 55%. - **`gclt30orgt55`**: This part specifies the range of GC content percentages for the genomic regions contained in the file. It means that the file includes regions with a GC content less than 30% or greater than 55%. - **`_slop50`**: This suffix indicates that the regions have been extended by 50 base pairs on either side (`slop` stands for "sliding window operation"). This extension is done to ensure that the regions are not too close to the edges of chromosomes, which can cause issues with certain analyses. :::warning Previous study concluded that GC biases across many commonly used platforms in experiments sequencing multiple genomes (with mean GC contents ranging from 28.9% to 62.4%) sequencing libraries prepared using the MiSeq and NextSeq platforms exhibited major GC biases, with problems becoming increasingly severe outside the 45–65% GC range[5]. Although GIAB provided gclt25orgt65 and gclt30orgt55 generated their alldifficultregions.bed.gz considering gclt25orgt65 as problematic GC content region. ::: [5] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7016772/ [6] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3639258/ [7] https://assets.thermofisher.com/TFS-Assets/BID/Technical-Notes/impact-gc-bias-library-preparation-tech-note.pdf ## Overlap specific regions with GIAB-stratification using R ``` library(GenomicRanges) all_bed=list.files("GRCh37@all/",recursive=T) all_bed=all_bed[!grepl(all_bed,pattern="GenomeSpecific")] all_bed=all_bed[grepl(all_bed,pattern="bed.gz")] target_region = read.table("CAP_confusion_region.bed", header = FALSE, stringsAsFactors = FALSE) target_region_gr = GRanges(seqnames = target_region$V1, ranges = IRanges(start = target_region$V2, end = target_region$V3)) target_region_gr$overlapped="" for(i in all_bed){ stratification_region = read.table(paste0("GRCh37@all/",i), header = FALSE, stringsAsFactors = FALSE) stratification_region_gr = GRanges(seqnames = stratification_region$V1, ranges = IRanges(start = stratification_region$V2, end = stratification_region$V3)) overlaps = findOverlaps(target_region_gr, stratification_region_gr) if(length(overlaps)>0){ target_region_gr$overlapped[overlaps@from]=paste0(target_region_gr$overlapped[overlaps@from],",",i) } } overlapped=t(sapply(1:length(target_region_gr),function(x){ t(sapply(all_bed,function(y){ grepl(target_region_gr$overlapped[x],pattern=y) })) })) colnames(overlapped)=all_bed result=cbind(as.data.frame(target_region_gr),overlapped) ``` https://hackmd.io/@sK-GgpcqTNWnutbxzOoG2g/ByjWu11j_#NA12878-HG001 [](https://)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully