$ mysql -u root -p
(provide your mysql root password to log in to mysql shell)
mysql> create database pnl
mysql> use pnl;
import numpy as np | |
# initialize blank data | |
dict1={} | |
for i in range(1,16): | |
dict1[f'chrpsychs_scr_{i}a10']='' | |
dict1[f'chrpsychs_scr_{i}a10_on']='' | |
dict1[f'chrpsychs_scr_{i}a6_on']='' | |
# test data for chrpsychs_scr_ac8=1 |
#!/usr/bin/env python | |
import pandas as pd | |
import numpy as np | |
# replicate 1c and 1d for p2-p8 =============================================== | |
df= pd.read_csv('instrument.csv') | |
calc_col='Choices, Calculations, OR Slider Labels' |
#!/usr/bin/env python | |
import numpy as np | |
import pandas as pd | |
import re | |
pd.set_option("display.max_rows", None) | |
pd.set_option("display.max_columns", None) | |
pd.set_option("display.max_colwidth", None) |
#!/usr/bin/env python | |
# cleaned up Kevin's work to make DPdash compatible files | |
# inserted codes for mtime: the latest time when a subject's data was downloaded | |
from pathlib import Path | |
import pandas as pd | |
import numpy as np | |
from datetime import time, timedelta, datetime, date |
#!/usr/bin/env python | |
import pandas as pd | |
import sys | |
from os.path import abspath | |
import numpy as np | |
COMBINED_STUDY='files' | |
COMBINED_SUBJECT='combined' |
#!/usr/bin/env python | |
import pandas as pd | |
import sys | |
from os.path import abspath | |
filename= abspath(sys.argv[1]) | |
# read Kevin's dataframe | |
df= pd.read_csv(filename) |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
from scipy.stats import zscore | |
import umap | |
from dash.exceptions import PreventUpdate | |
import plotly.graph_objects as go |
The instruction at https://github.com/TadasBaltrusaitis/OpenFace/wiki/Unix-Installation is for Ubuntu. But following the idea, I have been able to install it on CentOS 7. I am documenting the changes here for future. A major contribution of mine is to complete the installation without sudo.
/* | |
The file is available as a plain text at | |
http://ftp.nmr.mgh.harvard.edu/pub/dist/freesurfer/tutorial_packages/centos6/fsl_507/src/tbss/tbss_skeleton.cc | |
I find that hard to read because of one color | |
So, I created this gist for better legibility | |
It has all the colors for a .cc file | |
*/ | |
/* tbss_skeleton.cc |