<commit_before>import numpy

exprdata=numpy.loadtxt('/Users/poldrack/Dropbox/data/selftracking/rna-seq/WGCNA/cluster_eigengenes_GOBS.txt')


f=open('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/subcodes_common.txt')
subcodes=[i.strip() for i in f.readlines()]
f.close()

fd_demog=numpy.loadtxt('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/fd_common.txt')

wincorr=numpy.loadtxt('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/wincorr_common.txt')

f=open('/Users/poldrack/Dropbox/data/selftracking/rna-seq/WGCNA/GOBS_wincorr_expression_solar.txt','w')
wincorr_names=['WC%d'%i for i in range(1,wincorr.shape[1]+1)]
me_names=['ME%d'%int(i+1) for i in range(exprdata.shape[0])]
nuisance_names=['fd','age','sex']

header=['ID']+nuisance_names+wincorr_names+me_names

f.write('%s\n'%','.join(header))
<commit_msg>fixed offset problem<commit_after>import numpy

exprdata=numpy.loadtxt('/Users/poldrack/Dropbox/data/selftracking/rna-seq/WGCNA/cluster_eigengenes_GOBS.txt')
exprdata=exprdata[:,1:]

f=open('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/subcodes_common.txt')
subcodes=[i.strip() for i in f.readlines()]
f.close()

fd_demog=numpy.loadtxt('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/fd_common.txt')

wincorr=numpy.loadtxt('/Users/poldrack/Dropbox/data/connectome-genome/transcripts/wincorr_common.txt')

f=open('/Users/poldrack/Dropbox/data/selftracking/rna-seq/WGCNA/GOBS_wincorr_expression_solar.txt','w')
wincorr_names=['WC%d'%i for i in range(1,wincorr.shape[1]+1)]
me_names=['ME%d'%int(i+1) for i in range(exprdata.shape[0])]
nuisance_names=['fd','age','sex']

header=['ID']+nuisance_names+wincorr_names+me_names

f.write('%s\n'%','.join(header))

{'fraction_non_alphanumeric': 0.18287037037037038, 'fraction_numerical': 0.00636574074074074, 'mean_word_length': 8.245989304812834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1070409', 'n_tokens_mistral': 740, 'n_tokens_neox': 714, 'n_words': 55}