descriptives.scan how to save output

Questions about GenABEL (aka *ABEL) suite of packages
Forum rules
Please remember not to post any sensitive data on this public forum.
The first few posts of newly registered users will be moderated in order to filter out any spammers.

When get a solution to the problem you posted, please change the topic name (e.g. from "how to ..." to "[SOLVED] how to ..."). This will make it easier for the community to follow the posts yet to be attended.
kapr_genabel
Posts: 3
Joined: Wed Mar 23, 2016 10:30 am

descriptives.scan how to save output

Postby kapr_genabel » Thu Jun 23, 2016 10:09 am

Hello GenABEL users.



I am doing GWAS of a fungal genome that has more than One Million SNPs.

This is my first time analysis with GenABEL. I would like to know how to save the descriptives.scan results into a file. (i was able to save top 10, 100 etc,)
but I wanted to save all the hits into a file.

below is the commands i tried to save the output which dint work.

Code: Select all

descanmaf03 <- descriptives.scan(qtmaf03)
dscanresults <- descanmaf03@results
 write.table(dscanresults,file="~/path to/descanmaf03.txt",sep="\t")


also in tired sink()

Code: Select all

sink(file='descanmaf03.txt')
descriptives.scan(qtmaf03)
sink()


both the above scripts gives me an error or only saves top 1o results.
"sorry if the question looks silly, but i trying to learn"

Thank you
KRP

lckarssen
Site Admin
Site Admin
Posts: 321
Joined: Tue Jan 04, 2011 3:04 pm
Location: Utrecht, The Netherlands

Re: descriptives.scan how to save output

Postby lckarssen » Thu Jun 23, 2016 5:05 pm

What do you plan to do with the saved data? Is it acceptable if the file is only readable from R? Or should it be, for example, a text file (e.g. a .csv file)?
-------
Lennart Karssen
PolyOmica
The Netherlands
-------

kapr_genabel
Posts: 3
Joined: Wed Mar 23, 2016 10:30 am

Re: descriptives.scan how to save output

Postby kapr_genabel » Wed Jul 06, 2016 1:23 pm

Hi sorry for the delayed reply.
I wanted it in a text file. anyways i have figured it out thank you for your response.

KRP


Return to “GenABEL”

Who is online

Users browsing this forum: No registered users and 1 guest