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

AttributeError: 'MyReader' object has no attribute 'info' for vcf file #341

Open
anummunirmughal opened this issue Nov 21, 2022 · 0 comments

Comments

@anummunirmughal
Copy link

Hi
I have a code which is being called by another main code when I try to run it gives the error, following are the details

def createDatabaseFiles(vcfFile, varFile, annFile, freq = None, cosmicMutations = None, cosmicThreshold = None,
tcgaMutations = None, tcgaThreshold = None, dstFile = None, outputDir = None):

vcfReader = MyReader(open(vcfFile, "r"))
headersVar = ["VAR_ID", "CHROM", "POS", "REF", "ALT", "QUAL", "FILTER", "DP", "DP4", "INDEL"] + vcfReader.samples
headersAnn = ["ANN_ID"] + vcfReader.info['CSQ'].desc.split()[-1].split("|") + ["VAR_ID"]

Traceback (most recent call last):

File "/shared/teams/hpc-wasslab/updated_pipeline/variant_filtering/createDatabaseFiles.py", line 42, in createDatabaseFiles
headersAnn = ["ANN_ID"] + vcfReader.info['CSQ'].desc.split()[-1].split("|") + ["VAR_ID"]
AttributeError: 'MyReader' object has no attribute 'info'

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

1 participant