In addition to the proxy_set_header
stuff, I had to adjust my SELinux config:
setsebool -P httpd_read_user_content=on
systemctl restart nginx
I also needed the --ServerApp.allow_remote_access=True
flag:
In addition to the proxy_set_header
stuff, I had to adjust my SELinux config:
setsebool -P httpd_read_user_content=on
systemctl restart nginx
I also needed the --ServerApp.allow_remote_access=True
flag:
#!/usr/bin/env python | |
import pandas as pd | |
from glob import glob | |
new_vars="chrfigs_mother_ddx,chrfigs_mother_ddx_agree,chrfigs_mother_ddx_why,chrfigs_mother_mdx,chrfigs_mother_mdx_agree,\ | |
chrfigs_mother_mdx_why,chrfigs_mother_pdx,chrfigs_mother_pdx_agree,chrfigs_mother_pdx_why,chrfigs_mother_napdx,\ | |
chrfigs_mother_napdx_agree,chrfigs_mother_napdx_why,chrfigs_mother_apdx,chrfigs_mother_apdx_agree,chrfigs_mother_apdx_why,\ | |
chrfigs_father_ddx,chrfigs_father_ddx_agree,chrfigs_father_ddx_why,chrfigs_father_mdx,chrfigs_father_mdx_agree,\ | |
chrfigs_father_mdx_why,chrfigs_father_pdx,chrfigs_father_pdx_agree,chrfigs_father_pdx_why,chrfigs_father_napdx,\ |
This documentation is created by Tashrif Billah for referring AMP-SCZ collaborators about how to make an NDA-format dictionary definition. The latter has to be sent to ndahelp@mail.nih.gov to create the actual data dictionary. Copy the and start editing it according to the following instructions:
Must be less than 30 characters. It could be identical to REDCap variable name. If a REDCap variable does not exist, make up a proper name.
#!/usr/bin/env python | |
# cd /data/predict1/to_nda/nda-submissions/network_combined | |
df=pd.read_csv('/data/predict1/home/dm1447/data/ampscz_all_subjects.csv') | |
df.set_index('subject_id',inplace=True) | |
dfpre=pd.read_excel('form_status_tracker_PRESCIENT.xlsx') | |
dfpre.set_index('subject',inplace=True) |
from glob import glob | |
import json | |
dict1={'1':'SPLLT-A','2':'SPLLT-B','3':'SPLLT-C','4':'SPLLT-D','5':'PLLT-A','6':'PLLT-B','':'_______'} | |
files=glob('Pr*/PHOENIX/PROTECTED/Pr*/raw/???????/surveys/*.UPENN_nda.json') | |
# odd number of sessions and not provided cnb_pllt_test | |
for file in files: | |
with open(file) as f: |
#!/usr/bin/env python | |
import json | |
reordered='/data/predict1/charts1.json' | |
raw='/data/predict1/predict-mongodb-backup/charts_20240612.json' | |
# find out the private charts in raw | |
# print 0-indexed indices of private charts from raw file |
General documentation: https://www.gnu.org/software/screen/
Download from: https://ftp.gnu.org/gnu/screen/
Compiling instruction: https://www.gnu.org/software/screen/manual/html_node/Compiling-Screen.html
You may need yum install ncurses-devel
import pandas as pd | |
df=pd.read_csv('pennebakerctq01_definitions.csv') | |
dfgiven=pd.read_excel('cnb_ndar_codebook_v5.xlsx') | |
_aliases=df['Aliases'].unique() | |
__aliases=[] | |
for e in _aliases: | |
if pd.isna(e): |
#!/bin/bash | |
# convert SSH public key to pem format | |
ssh-keygen -e -m PKCS8 -f git_rsa.pub > git_rsa.pem | |
# encrypt | |
openssl rsautl -encrypt -pubin -inkey git_rsa.pem -in message.txt -out message.enc | |
# decrypt | |
openssl rsautl -decrypt -inkey git_rsa -in message.enc |
import pandas as pd | |
# cd /data/predict1/to_nda/nda-submissions | |
df=pd.read_csv('blood_saliva_rack_Pronet.csv') | |
index=[] | |
for i,row in df.iterrows(): | |
rc=row['Rack Code'] |