scout/parse/variant/headers.py
def parse_header_format(description):
    """Get the format from a vcf header line description
    
    If format begins with white space it will be stripped
    
    Args:
        description(str): Description from a vcf header line
    
    Return:
        format(str): The format information from description
    """
    description = description.strip('"')
    keyword = 'Format:'
    before_keyword, keyword, after_keyword = description.partition(keyword)
    return after_keyword.strip()
def parse_header_format(description):
    """Get the format from a vcf header line description
    
    If format begins with white space it will be stripped
    
    Args:
        description(str): Description from a vcf header line
    
    Return:
        format(str): The format information from description
    """
    description = description.strip('"')
    keyword = 'Format:'
    before_keyword, keyword, after_keyword = description.partition(keyword)
    return after_keyword.strip()
def parse_header_format ( description ) : description = description . strip ( '"' ) keyword = 'Format:' before_keyword , keyword , after_keyword = description . partition ( keyword ) return after_keyword . strip ( )
Get the format from a vcf header line description
    
    If format begins with white space it will be stripped
    
    Args:
        description(str): Description from a vcf header line
    
    Return:
        format(str): The format information from description
Get the format from a vcf header line description If format begins with white space it will be stripped Args : description ( str ) : Description from a vcf header line Return : format ( str ) : The format information from description